Skip to content

Commit cd8a740

Browse files
authored
Update refresh.py
1 parent d0a3e2f commit cd8a740

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

SoftLayer/CLI/block/refresh.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
@click.command(cls=SoftLayer.CLI.command.SLCommand, )
1010
@click.argument('volume_id')
1111
@click.argument('snapshot_id')
12-
@click.option('--force-refresh', '-f',
13-
help="Cancel current refresh process and initiates the new refresh.",
14-
type=click.BOOL,
15-
default=False,
16-
show_default=True)
12+
@click.option('--force-refresh', '-f', is_flag = True, default = False, show_default = True,
13+
help="Cancel current refresh process and initiates the new refresh."
14+
)
1715
@environment.pass_env
1816
def cli(env, volume_id, snapshot_id, force_refresh):
1917
"""Refresh a duplicate volume with a snapshot from its parent."""

0 commit comments

Comments
 (0)