Commit 51fbc6d9 authored by Alain Takoudjou's avatar Alain Takoudjou

slapconfiguration can provide instance and root instance title

parent d5cfaa13
...@@ -68,6 +68,10 @@ class Recipe(object): ...@@ -68,6 +68,10 @@ class Recipe(object):
${storage-configuration:storage-home} ${storage-configuration:storage-home}
Output: Output:
root-instance-title
Hosting subscription or root instance title
instance-title
Title of instance running into this partition
slap-software-type slap-software-type
Current partition's software type. Current partition's software type.
ipv4 ipv4
...@@ -146,6 +150,12 @@ class Recipe(object): ...@@ -146,6 +150,12 @@ class Recipe(object):
pass pass
else: else:
options[his_key.replace('_', '-')] = value options[his_key.replace('_', '-')] = value
# Get Instance and root instance title or return UNKNOW if not set
options['instance-title'] = parameter_dict.pop('instance_title',
'UNKNOW Instance')
options['root-instance-title'] = parameter_dict.pop('root_instance_title',
'UNKNOW')
ipv4_set = set() ipv4_set = set()
v4_add = ipv4_set.add v4_add = ipv4_set.add
ipv6_set = set() ipv6_set = set()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment