Skip to content

Commit eb98a09

Browse files
committed
remove dead code
1 parent 39a5393 commit eb98a09

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

filter_plugins/slurm_conf.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@
2222
# Pattern to match a hostname with numerical ending
2323
pattern = re.compile("^(.*\D(?=\d))(\d+)$")
2424

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-
3525
def hostlist_expression(hosts):
3626
""" Group hostnames using Slurm's hostlist expression format.
3727

0 commit comments

Comments
 (0)