Get account hash behavior
* Add a new behavior to return the Cloud Files account hash. Change-Id: I81dc9670425bfe2da1f39c8919a46cbc2b4ae4ac
This commit is contained in:
parent
ecca41dca0
commit
fd3b16fe58
|
@ -952,3 +952,13 @@ class ObjectStorageAPI_Behaviors(BaseBehavior):
|
|||
utf_object_name)
|
||||
|
||||
return delete_response
|
||||
|
||||
def get_account_hash(self):
|
||||
"""
|
||||
@summary: This method will split the account hash from the
|
||||
storage url and return it.
|
||||
|
||||
@return: The account hash
|
||||
@rtype: string
|
||||
"""
|
||||
return self.client.storage_url.split('/v1/')[1]
|
||||
|
|
Loading…
Reference in New Issue