1313@click .command ()
1414@click .argument ('identifier' )
1515@click .option ('--postinstall' , '-i' ,
16- help = ("Post-install script to download "
17- "(Only HTTPS executes, HTTP leaves file in /root" ))
16+ help = ("Post-install script to download (Only HTTPS executes, HTTP leaves file in /root" ))
1817@helpers .multi_option ('--key' , '-k' , help = "SSH keys to add to the root user" )
18+ @click .option ('--lvm' , '-l' , is_flag = True , default = False , show_default = True ,
19+ help = "A flag indicating that the provision should use LVM for all logical drives." )
1920@environment .pass_env
20- def cli (env , identifier , postinstall , key ):
21+ def cli (env , identifier , postinstall , key , lvm ):
2122 """Reload operating system on a server."""
2223
2324 hardware = SoftLayer .HardwareManager (env .client )
24- hardware_id = helpers .resolve_id (hardware .resolve_ids ,
25- identifier ,
26- 'hardware' )
25+ hardware_id = helpers .resolve_id (hardware .resolve_ids , identifier , 'hardware' )
2726 key_list = []
2827 if key :
2928 for single_key in key :
@@ -33,4 +32,4 @@ def cli(env, identifier, postinstall, key):
3332 if not (env .skip_confirmations or formatting .no_going_back (hardware_id )):
3433 raise exceptions .CLIAbort ('Aborted' )
3534
36- hardware .reload (hardware_id , postinstall , key_list )
35+ hardware .reload (hardware_id , postinstall , key_list , lvm )
0 commit comments