Compare commits
2 Commits
5152fd778c
...
0dd149121c
Author | SHA1 | Date | |
---|---|---|---|
0dd149121c | |||
a4fdd9322f |
@ -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}" ]'
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user