mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Add common aggregate arguments for junos modules (#28124)
If parameter value in aggregate is not set, fetch it's corresponding value from top level parameters.
This commit is contained in:
parent
d78c199972
commit
711a6b2326
25 changed files with 374 additions and 272 deletions
|
@ -329,6 +329,12 @@ def ternary(value, true_val, false_val):
|
|||
return false_val
|
||||
|
||||
|
||||
def remove_default_spec(spec):
|
||||
for item in spec:
|
||||
if 'default' in spec[item]:
|
||||
del spec[item]['default']
|
||||
|
||||
|
||||
class Template:
|
||||
|
||||
def __init__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue