address spacing issues

This commit is contained in:
captainkerk 2018-01-28 03:28:49 +00:00
parent 92798b9a9f
commit ed06658271
4 changed files with 4 additions and 2 deletions

View File

@ -101,12 +101,14 @@ class SnapshotCopyDisabledFaultError(RedshiftClientError):
'SnapshotCopyDisabledFault',
"Cannot modify retention period because snapshot copy is disabled on Cluster {0}.".format(cluster_identifier))
class SnapshotCopyAlreadyDisabledFaultError(RedshiftClientError):
def __init__(self, cluster_identifier):
super(SnapshotCopyAlreadyDisabledFaultError, self).__init__(
'SnapshotCopyAlreadyDisabledFault',
"Snapshot Copy is already disabled on Cluster {0}.".format(cluster_identifier))
class SnapshotCopyAlreadyEnabledFaultError(RedshiftClientError):
def __init__(self, cluster_identifier):
super(SnapshotCopyAlreadyEnabledFaultError, self).__init__(

View File

@ -226,7 +226,6 @@ class Cluster(TaggableResourceMixin, BaseModel):
"NodeType": self.node_type,
"ClusterIdentifier": self.cluster_identifier,
"AllowVersionUpgrade": self.allow_version_upgrade,
"Endpoint": {
"Address": self.endpoint,
"Port": self.port

View File

@ -555,4 +555,4 @@ class RedshiftResponse(BaseResponse):
"RequestId": "384ac68d-3775-11df-8963-01868b7c937a",
}
}
})
})

View File

@ -1090,6 +1090,7 @@ def test_disable_snapshot_copy():
response = client.describe_clusters(ClusterIdentifier='test')
response['Clusters'][0].shouldnt.contain('ClusterSnapshotCopyStatus')
@mock_redshift
def test_modify_snapshot_copy_retention_period():
client = boto3.client('redshift', region_name='us-east-1')