mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Simplify Fully Qualified function
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user