Exemple #1
0
 def __init__(self, module, subspec='config', options='options'):
     self._module = module
     self.argument_spec = AclsArgs.argument_spec
     spec = deepcopy(self.argument_spec)
     if subspec:
         if options:
             facts_argument_spec = spec[subspec][options]
         else:
             facts_argument_spec = spec[subspec]
     else:
         facts_argument_spec = spec
     self.generated_spec = utils.generate_dict(facts_argument_spec)
    def __init__(self, module, subspec="config", options="options"):
        self._module = module
        self.argument_spec = Lag_interfacesArgs.argument_spec
        spec = deepcopy(self.argument_spec)
        if subspec:
            if options:
                facts_argument_spec = spec[subspec][options]
            else:
                facts_argument_spec = spec[subspec]
        else:
            facts_argument_spec = spec

        self.generated_spec = utils.generate_dict(facts_argument_spec)