We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a5393 commit eb98a09Copy full SHA for eb98a09
filter_plugins/slurm_conf.py
@@ -22,16 +22,6 @@
22
# Pattern to match a hostname with numerical ending
23
pattern = re.compile("^(.*\D(?=\d))(\d+)$")
24
25
-def _get_hostvar(context, var_name, inventory_hostname=None):
26
- if inventory_hostname is None:
27
- namespace = context
28
- else:
29
- if inventory_hostname not in context['hostvars']:
30
- raise errors.AnsibleFilterError(
31
- "Inventory hostname '%s' not in hostvars" % inventory_hostname)
32
- namespace = context["hostvars"][inventory_hostname]
33
- return namespace.get(var_name)
34
-
35
def hostlist_expression(hosts):
36
""" Group hostnames using Slurm's hostlist expression format.
37
0 commit comments