We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aeff0c commit b2a09e6Copy full SHA for b2a09e6
1 file changed
SoftLayer/CLI/hardware/toggle_ipmi.py
@@ -10,14 +10,13 @@
10
11
@click.command()
12
@click.argument('identifier')
13
-@click.option('--enabled',
14
- type=click.BOOL,
15
- help="Whether to enable or disable the interface.")
+@click.option('--enable/--disable', default=True,
+ help="Whether enable (DEFAULT) or disable the interface.")
16
@environment.pass_env
17
-def cli(env, identifier, enabled):
+def cli(env, identifier, enable):
18
"""Toggle the IPMI interface on and off"""
19
20
mgr = SoftLayer.HardwareManager(env.client)
21
hw_id = helpers.resolve_id(mgr.resolve_ids, identifier, 'hardware')
22
- result = env.client['Hardware_Server'].toggleManagementInterface(enabled, id=hw_id)
+ result = env.client['Hardware_Server'].toggleManagementInterface(enable, id=hw_id)
23
env.fout(result)
0 commit comments