Get account hash behavior

* Add a new behavior to return the Cloud Files
  account hash.

Change-Id: I81dc9670425bfe2da1f39c8919a46cbc2b4ae4ac
This commit is contained in:
josh7810 2017-02-02 17:02:21 -06:00
parent ecca41dca0
commit fd3b16fe58
1 changed files with 10 additions and 0 deletions

View File

@ -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]