MCPcopy
hub / github.com/saltstack/salt / _resolve_nodegroup

Method _resolve_nodegroup

salt/client/__init__.py:1981–1988  ·  view source on GitHub ↗

Resolve a nodegroup into its configured components

(self, ng)

Source from the content-addressed store, hash-verified

1979 time.sleep(0.02)
1980
1981 def _resolve_nodegroup(self, ng):
1982 """
1983 Resolve a nodegroup into its configured components
1984 """
1985 if ng not in self.opts["nodegroups"]:
1986 conf_file = self.opts.get("conf_file", "the master config file")
1987 raise SaltInvocationError(f"Node group {ng} unavailable in {conf_file}")
1988 return salt.utils.minions.nodegroup_comp(ng, self.opts["nodegroups"])
1989
1990 def _prep_pub(self, tgt, fun, arg, tgt_type, ret, jid, timeout, **kwargs):
1991 """

Callers 3

_prep_pubMethod · 0.95
test_resolve_nodegroupFunction · 0.80

Calls 2

SaltInvocationErrorClass · 0.90
getMethod · 0.45

Tested by 2

test_resolve_nodegroupFunction · 0.64