fix: added missing command context pass into function
This commit is contained in:
2
main.py
2
main.py
@@ -103,7 +103,7 @@ def mod_vps(ctx, entity: str, password: str | None = None, api: str | None = Non
|
|||||||
@cli.option("-g", "--group", type=str, default="ungrouped", help="Provide group name given host(s) fall under")
|
@cli.option("-g", "--group", type=str, default="ungrouped", help="Provide group name given host(s) fall under")
|
||||||
@cli.pass_context
|
@cli.pass_context
|
||||||
# @TODO rewrite below command function, using 'ctx' parameter for values shared with sibling commands
|
# @TODO rewrite below command function, using 'ctx' parameter for values shared with sibling commands
|
||||||
def mod_host(group, hostname):
|
def mod_host(ctx, group, hostname):
|
||||||
with Config(entity, AnsibleScope.INVENTORY.name) as config:
|
with Config(entity, AnsibleScope.INVENTORY.name) as config:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user