Compare commits
2 Commits
0dd149121c
...
5152fd778c
Author | SHA1 | Date | |
---|---|---|---|
5152fd778c | |||
f557706885 |
@ -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}_{subname}" {{')
|
print(f'object CheckCommand "{command_name}" {{')
|
||||||
print(
|
print(
|
||||||
f' command = [ PluginContribDir + "/{command_path}", "{subname}" ]'
|
f' command = [ PluginContribDir + "/{command_path}", "{subname}" ]'
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user