Use parenthesis instead of backslashes in scheduler folder

Use parenthesis instead of backslashes in scheduler folder

TrivialFix
Change-Id: I6c2ea07b0bfc5852b28e44989406cc10eb973e13
This commit is contained in:
zhongjun 2017-06-19 16:55:53 +08:00
parent f7d3903ccb
commit 8357f68d74
1 changed files with 3 additions and 3 deletions

View File

@ -626,9 +626,9 @@ class HostManager(object):
host, pool.pool_name)
host_name = share_utils.extract_host(
fully_qualified_pool_name, level='host')
backend_name = share_utils.extract_host(
fully_qualified_pool_name, level='backend').split('@')[1] \
if '@' in fully_qualified_pool_name else None
backend_name = (share_utils.extract_host(
fully_qualified_pool_name, level='backend').split('@')[1]
if '@' in fully_qualified_pool_name else None)
pool_name = share_utils.extract_host(
fully_qualified_pool_name, level='pool')