MCPcopy Index your code
hub / github.com/saltstack/salt / partition

Method partition

salt/cli/batch.py:125–126  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

123 """
124
125 def partition(x):
126 return float(x) / 100.0 * len(self.minions)
127
128 try:
129 if isinstance(self.opts["batch"], str) and "%" in self.opts["batch"]:

Callers 15

_register_resourcesMethod · 0.45
blkidFunction · 0.45
__virtual__Function · 0.45
_apply_cd_driveFunction · 0.45
_get_type_id_optionsFunction · 0.45
services_need_restartFunction · 0.45
examineFunction · 0.45
_udevFunction · 0.45
_extract_versionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected