12
12
@click .command (cls = SoftLayer .CLI .command .SLCommand , )
13
13
@click .argument ('volume-id' )
14
14
@click .option ('--reason' , help = "An optional reason for cancellation" )
15
- @click .option ('--immediate' ,
16
- is_flag = True ,
17
- help = "Cancels the file storage volume immediately instead "
18
- "of on the billing anniversary" )
15
+ @click .option ('--immediate' , is_flag = True ,
16
+ help = "Cancels the file storage volume immediately instead of on the billing anniversary" )
19
17
@click .option ('--force' , default = False , is_flag = True , help = "Force modify" )
20
18
@environment .pass_env
21
19
def cli (env , volume_id , reason , immediate , force ):
@@ -32,15 +30,12 @@ def cli(env, volume_id, reason, immediate, force):
32
30
if not (env .skip_confirmations or formatting .no_going_back (volume_id )):
33
31
raise exceptions .CLIAbort ('Aborted.' )
34
32
35
- cancelled = file_storage_manager .cancel_file_volume (volume_id ,
36
- reason , immediate )
33
+ cancelled = file_storage_manager .cancel_file_volume (volume_id , reason , immediate )
37
34
38
35
if cancelled :
39
36
if immediate :
40
- click .echo ('File volume with id %s has been marked'
41
- ' for immediate cancellation' % volume_id )
37
+ click .echo (f'File volume with id { volume_id } has been marked for immediate cancellation' )
42
38
else :
43
- click .echo ('File volume with id %s has been marked'
44
- ' for cancellation' % volume_id )
39
+ click .echo (f'File volume with id { volume_id } has been marked for cancellation' )
45
40
else :
46
- click .echo ('Unable to cancle file volume %s' % volume_id )
41
+ click .echo (f 'Unable to cancle file volume { volume_id } ' )
0 commit comments