Simplify Fully Qualified function

pull/11142/head
Etienne CARRIERE 10 years ago
parent 5204d7ca88
commit 94fa5e8794

@ -64,12 +64,9 @@ def disable_ssl_cert_validation():
# Fully Qualified name (with the partition)
def fq_name(partition,name):
if name is None:
return None
if name[0] is '/':
return name
else:
if name is not None and not name.startswith('/'):
return '/%s/%s' % (partition,name)
return name
# Fully Qualified name (with partition) for a list
def fq_list_names(partition,list_names):

Loading…
Cancel
Save