default to None

This commit is contained in:
andrew 2018-03-07 08:38:07 -05:00
parent 894906e0ee
commit e2e1c7347b

View File

@ -67,7 +67,7 @@ class Cluster(TaggableResourceMixin, BaseModel):
preferred_maintenance_window, cluster_parameter_group_name,
automated_snapshot_retention_period, port, cluster_version,
allow_version_upgrade, number_of_nodes, publicly_accessible,
encrypted, region_name, tags=None, iam_roles_arn=[]):
encrypted, region_name, tags=None, iam_roles_arn=None):
super(Cluster, self).__init__(region_name, tags)
self.redshift_backend = redshift_backend
self.cluster_identifier = cluster_identifier
@ -112,7 +112,7 @@ class Cluster(TaggableResourceMixin, BaseModel):
else:
self.number_of_nodes = 1
self.iam_roles_arn = iam_roles_arn
self.iam_roles_arn = iam_roles_arn or []
@classmethod
def create_from_cloudformation_json(cls, resource_name, cloudformation_json, region_name):
@ -357,7 +357,7 @@ class Snapshot(TaggableResourceMixin, BaseModel):
resource_type = 'snapshot'
def __init__(self, cluster, snapshot_identifier, region_name, tags=None, iam_roles_arn=[]):
def __init__(self, cluster, snapshot_identifier, region_name, tags=None, iam_roles_arn=None):
super(Snapshot, self).__init__(region_name, tags)
self.cluster = copy.copy(cluster)
self.snapshot_identifier = snapshot_identifier
@ -365,7 +365,7 @@ class Snapshot(TaggableResourceMixin, BaseModel):
self.status = 'available'
self.create_time = iso_8601_datetime_with_milliseconds(
datetime.datetime.now())
self.iam_roles_arn = iam_roles_arn
self.iam_roles_arn = iam_roles_arn or []
@property
def resource_id(self):