def list_directories():
 tenant = show_tenant()
 tenant_id = tenant.get('href', '').split('/')[(-1)]
 (status, result) = _query(action='tenants', command='{0}/directories'.format(tenant_id))
 return result

def list_directories ( ) : tenant = show_tenant ( ) tenant_id = tenant . get ( 'href' , '' ) . split ( '/' ) [ ( - 1 ) ] ( status , result ) = _query ( action = 'tenants' , command = '{0}/directories' . format ( tenant_id ) ) return result
show all directories .