File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3966,11 +3966,13 @@ new volume.
39663966
39673967``--delete-on-termination ``
39683968 Specify that the volume should be deleted when the server is destroyed.
3969+ It is mutually exclusive with '--no-delete-on-termination'.
39693970 (Supported by API versions '2.85' - '2.latest')
39703971
39713972``--no-delete-on-termination ``
39723973 Specify that the attached volume should not be deleted when
3973- the server is destroyed. (Supported by API versions '2.85' - '2.latest')
3974+ the server is destroyed. It is mutually exclusive with '--delete-on-termination'.
3975+ (Supported by API versions '2.85' - '2.latest')
39743976
39753977.. _nova_bash-completion :
39763978
Original file line number Diff line number Diff line change @@ -4006,6 +4006,18 @@ def test_volume_update_swap_v285(self):
40064006 self .assert_called ('PUT' , '/servers/1234/os-volume_attachments/Work' ,
40074007 {'volumeAttachment' : {'volumeId' : 'Work' }})
40084008
4009+ def test_volume_update_delete_on_termination_pre_v285 (self ):
4010+ self .assertRaises (
4011+ SystemExit , self .run_command ,
4012+ 'volume-update sample-server --delete-on-termination Work Work' ,
4013+ api_version = '2.84' )
4014+
4015+ def test_volume_update_no_delete_on_termination_pre_v285 (self ):
4016+ self .assertRaises (
4017+ SystemExit , self .run_command ,
4018+ 'volume-update sample-server --no-delete-on-termination Work Work' ,
4019+ api_version = '2.84' )
4020+
40094021 def test_volume_update_v285 (self ):
40104022 self .run_command ('volume-update sample-server --delete-on-termination '
40114023 'Work Work' , api_version = '2.85' )
You can’t perform that action at this time.
0 commit comments