Remove useless validate methods
Remove the validate methods of s3 and swift resources, as they don't provide any value and hide validation of properties. Change-Id: I5b9f7aef828d5e4d7cdebfd2bd550feaae545c90 Closes-Bug: #1260643
This commit is contained in:
parent
0ceb85dda3
commit
f204ad21ec
|
@ -100,15 +100,6 @@ class S3Bucket(resource.Resource):
|
|||
'WebsiteURL': _('The website endpoint for the specified bucket.')
|
||||
}
|
||||
|
||||
def validate(self):
|
||||
'''
|
||||
Validate any of the provided params
|
||||
'''
|
||||
#check if swiftclient is installed
|
||||
if clients.swiftclient is None:
|
||||
return {'Error':
|
||||
'S3 services unavailable because of missing swiftclient.'}
|
||||
|
||||
def tags_to_headers(self):
|
||||
if self.properties[self.TAGS] is None:
|
||||
return {}
|
||||
|
|
|
@ -66,15 +66,6 @@ class SwiftContainer(resource.Resource):
|
|||
'HeadContainer': _('A map containing all headers for the container.')
|
||||
}
|
||||
|
||||
def validate(self):
|
||||
'''
|
||||
Validate any of the provided params
|
||||
'''
|
||||
#check if swiftclient is installed
|
||||
if clients.swiftclient is None:
|
||||
return {'Error':
|
||||
'SwiftContainer unavailable due to missing swiftclient.'}
|
||||
|
||||
def physical_resource_name(self):
|
||||
name = self.properties.get(self.NAME)
|
||||
if name:
|
||||
|
|
Loading…
Reference in New Issue