You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to modify this function so that it will accept variable or property names in the uuid['variables'] data structure. I'm already constructing this data format to verify whether a sync is needed. It seems redundant to convert it all to variables for the function to then convert it back to property names.
Here is the secion I'm talking about:
forentryintemplate_variables['columns']:
ifentry['variable']:
ifentry['variable'] inuuid[device_uuid]['variables']:
device_template_variables[entry['property']] =uuid[device_uuid]['variables'][entry['variable']]
elifentry['property'] inuuid[device_uuid]['variables']:
device_template_variables[entry['property']] =uuid[device_uuid]['variables'][entry['property']]
else:
raiseException(f"{entry['variable']} is missing for template {uuid[device_uuid]['host_name']}")
I would be adding the elif:
elif entry['property'] in uuid[device_uuid]['variables']:
device_template_variables[entry['property']] = uuid[device_uuid]['variables'][entry['property']]
What do you think about that?
The text was updated successfully, but these errors were encountered:
jeremypng
added a commit
to jeremypng/python-viptela
that referenced
this issue
Dec 21, 2020
I would like to modify this function so that it will accept variable or property names in the uuid['variables'] data structure. I'm already constructing this data format to verify whether a sync is needed. It seems redundant to convert it all to variables for the function to then convert it back to property names.
Here is the secion I'm talking about:
I would be adding the elif:
What do you think about that?
The text was updated successfully, but these errors were encountered: