Although it is theoretically possible to infer default values for the
Properties of a TemplateResource from the Parameters of the provider
template, this presents a number of conversion issues that are presently
unhandled.
Instead, pass parameter values only for properties that are supplied. For
the others, allow the parameter defaults in the template to be used.
Change-Id: I2ba49ffeee06c3a272694c18b3875f843ade1e6c
for n, v in iter(self.properties.props.items()):
if not v.implemented():
continue
- elif v.type() == properties.LIST:
+
+ val = self.properties[n]
+
+ if val is not None:
# take a list and create a CommaDelimitedList
- val = self.properties[n]
- if val:
- params[n] = ','.join(val)
- else:
+ if v.type() == properties.LIST:
+ val = ','.join(val)
+
# for MAP, the JSON param takes either a collection or string,
# so just pass it on and let the param validate as appropriate
- params[n] = self.properties[n]
+
+ params[n] = val
return params