address spacing issues
This commit is contained in:
parent
92798b9a9f
commit
ed06658271
@ -101,12 +101,14 @@ class SnapshotCopyDisabledFaultError(RedshiftClientError):
|
|||||||
'SnapshotCopyDisabledFault',
|
'SnapshotCopyDisabledFault',
|
||||||
"Cannot modify retention period because snapshot copy is disabled on Cluster {0}.".format(cluster_identifier))
|
"Cannot modify retention period because snapshot copy is disabled on Cluster {0}.".format(cluster_identifier))
|
||||||
|
|
||||||
|
|
||||||
class SnapshotCopyAlreadyDisabledFaultError(RedshiftClientError):
|
class SnapshotCopyAlreadyDisabledFaultError(RedshiftClientError):
|
||||||
def __init__(self, cluster_identifier):
|
def __init__(self, cluster_identifier):
|
||||||
super(SnapshotCopyAlreadyDisabledFaultError, self).__init__(
|
super(SnapshotCopyAlreadyDisabledFaultError, self).__init__(
|
||||||
'SnapshotCopyAlreadyDisabledFault',
|
'SnapshotCopyAlreadyDisabledFault',
|
||||||
"Snapshot Copy is already disabled on Cluster {0}.".format(cluster_identifier))
|
"Snapshot Copy is already disabled on Cluster {0}.".format(cluster_identifier))
|
||||||
|
|
||||||
|
|
||||||
class SnapshotCopyAlreadyEnabledFaultError(RedshiftClientError):
|
class SnapshotCopyAlreadyEnabledFaultError(RedshiftClientError):
|
||||||
def __init__(self, cluster_identifier):
|
def __init__(self, cluster_identifier):
|
||||||
super(SnapshotCopyAlreadyEnabledFaultError, self).__init__(
|
super(SnapshotCopyAlreadyEnabledFaultError, self).__init__(
|
||||||
|
@ -226,7 +226,6 @@ class Cluster(TaggableResourceMixin, BaseModel):
|
|||||||
"NodeType": self.node_type,
|
"NodeType": self.node_type,
|
||||||
"ClusterIdentifier": self.cluster_identifier,
|
"ClusterIdentifier": self.cluster_identifier,
|
||||||
"AllowVersionUpgrade": self.allow_version_upgrade,
|
"AllowVersionUpgrade": self.allow_version_upgrade,
|
||||||
|
|
||||||
"Endpoint": {
|
"Endpoint": {
|
||||||
"Address": self.endpoint,
|
"Address": self.endpoint,
|
||||||
"Port": self.port
|
"Port": self.port
|
||||||
|
@ -555,4 +555,4 @@ class RedshiftResponse(BaseResponse):
|
|||||||
"RequestId": "384ac68d-3775-11df-8963-01868b7c937a",
|
"RequestId": "384ac68d-3775-11df-8963-01868b7c937a",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -1090,6 +1090,7 @@ def test_disable_snapshot_copy():
|
|||||||
response = client.describe_clusters(ClusterIdentifier='test')
|
response = client.describe_clusters(ClusterIdentifier='test')
|
||||||
response['Clusters'][0].shouldnt.contain('ClusterSnapshotCopyStatus')
|
response['Clusters'][0].shouldnt.contain('ClusterSnapshotCopyStatus')
|
||||||
|
|
||||||
|
|
||||||
@mock_redshift
|
@mock_redshift
|
||||||
def test_modify_snapshot_copy_retention_period():
|
def test_modify_snapshot_copy_retention_period():
|
||||||
client = boto3.client('redshift', region_name='us-east-1')
|
client = boto3.client('redshift', region_name='us-east-1')
|
||||||
|
Loading…
Reference in New Issue
Block a user