Compare commits

..

2 Commits

Author SHA1 Message Date
0dd149121c Bump version to 0.2.0 2022-12-30 22:17:33 -05:00
a4fdd9322f Add support for text/regex based attributes 2022-12-30 22:17:33 -05:00

View File

@ -192,7 +192,7 @@ class Icinga2ConfAction(argparse.Action):
# TODO: this seems a bit more hacky than it needs to be # TODO: this seems a bit more hacky than it needs to be
choices = parser._subparsers._group_actions[0].choices choices = parser._subparsers._group_actions[0].choices
for subname, subparser in choices.items(): for subname, subparser in choices.items():
print(f'object CheckCommand "{command_name}" {{') print(f'object CheckCommand "{command_name}_{subname}" {{')
print( print(
f' command = [ PluginContribDir + "/{command_path}", "{subname}" ]' f' command = [ PluginContribDir + "/{command_path}", "{subname}" ]'
) )