1212@click .command (cls = SoftLayer .CLI .command .SLCommand , )
1313@click .argument ('volume-id' )
1414@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" )
1917@click .option ('--force' , default = False , is_flag = True , help = "Force modify" )
2018@environment .pass_env
2119def cli (env , volume_id , reason , immediate , force ):
@@ -32,15 +30,12 @@ def cli(env, volume_id, reason, immediate, force):
3230 if not (env .skip_confirmations or formatting .no_going_back (volume_id )):
3331 raise exceptions .CLIAbort ('Aborted.' )
3432
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 )
3734
3835 if cancelled :
3936 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' )
4238 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' )
4540 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