def list_containers(call=None, kwargs=None):
 global storconn
 if (not storconn):
  storconn = get_conn(StorageManagementClient)
 storageaccount = azure.storage.CloudStorageAccount(config.get_cloud_config_value('storage_account', get_configured_provider(), __opts__, search_global=False), config.get_cloud_config_value('storage_key', get_configured_provider(), __opts__, search_global=False))
 storageservice = storageaccount.create_block_blob_service()
 if (kwargs is None):
  kwargs = {}
 ret = {}
 for cont in storageservice.list_containers().items:
  ret[cont.name] = object_to_dict(cont)
 return ret

def list_containers ( call = None , kwargs = None ) : global storconn if ( not storconn ) : storconn = get_conn ( StorageManagementClient ) storageaccount = azure . storage . CloudStorageAccount ( config . get_cloud_config_value ( 'storage_account' , get_configured_provider ( ) , __opts__ , search_global = False ) , config . get_cloud_config_value ( 'storage_key' , get_configured_provider ( ) , __opts__ , search_global = False ) ) storageservice = storageaccount . create_block_blob_service ( ) if ( kwargs is None ) : kwargs = { } ret = { } for cont in storageservice . list_containers ( ) . items : ret [ cont . name ] = object_to_dict ( cont ) return ret
returns a list of containers by name .