File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -578,9 +578,6 @@ def test_volume_set_no_options(self):
578578 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
579579
580580 result = self .cmd .take_action (parsed_args )
581-
582- self .assertEqual ("No changes requested\n " ,
583- self .app .log .messages .get ('error' ))
584581 self .assertIsNone (result )
585582
586583 def test_volume_set_name (self ):
Original file line number Diff line number Diff line change @@ -202,8 +202,6 @@ def take_action(self, parsed_args):
202202 if parsed_args .property :
203203 volume_client .qos_specs .set_keys (qos_spec .id ,
204204 parsed_args .property )
205- else :
206- self .app .log .error (_ ("No changes requested\n " ))
207205
208206
209207class ShowQos (command .ShowOne ):
@@ -263,5 +261,3 @@ def take_action(self, parsed_args):
263261 if parsed_args .property :
264262 volume_client .qos_specs .unset_keys (qos_spec .id ,
265263 parsed_args .property )
266- else :
267- self .app .log .error (_ ("No changes requested\n " ))
Original file line number Diff line number Diff line change @@ -208,10 +208,6 @@ def take_action(self, parsed_args):
208208 if parsed_args .description :
209209 kwargs ['display_description' ] = parsed_args .description
210210
211- if not kwargs and not parsed_args .property :
212- self .app .log .error (_ ("No changes requested\n " ))
213- return
214-
215211 snapshot .update (** kwargs )
216212
217213
@@ -270,5 +266,3 @@ def take_action(self, parsed_args):
270266 snapshot .id ,
271267 parsed_args .property ,
272268 )
273- else :
274- self .app .log .error (_ ("No changes requested\n " ))
Original file line number Diff line number Diff line change @@ -363,9 +363,6 @@ def take_action(self, parsed_args):
363363 if kwargs :
364364 volume_client .volumes .update (volume .id , ** kwargs )
365365
366- if not kwargs and not parsed_args .property and not parsed_args .size :
367- self .app .log .error (_ ("No changes requested\n " ))
368-
369366
370367class ShowVolume (command .ShowOne ):
371368 """Show volume details"""
@@ -428,5 +425,3 @@ def take_action(self, parsed_args):
428425 volume .id ,
429426 parsed_args .property ,
430427 )
431- else :
432- self .app .log .error (_ ("No changes requested\n " ))
Original file line number Diff line number Diff line change @@ -181,5 +181,3 @@ def take_action(self, parsed_args):
181181
182182 if parsed_args .property :
183183 volume_type .unset_keys (parsed_args .property )
184- else :
185- self .app .log .error (_ ("No changes requested\n " ))
Original file line number Diff line number Diff line change @@ -202,8 +202,6 @@ def take_action(self, parsed_args):
202202 if parsed_args .property :
203203 volume_client .qos_specs .set_keys (qos_spec .id ,
204204 parsed_args .property )
205- else :
206- self .app .log .error (_ ("No changes requested\n " ))
207205
208206
209207class ShowQos (command .ShowOne ):
@@ -263,5 +261,3 @@ def take_action(self, parsed_args):
263261 if parsed_args .property :
264262 volume_client .qos_specs .unset_keys (qos_spec .id ,
265263 parsed_args .property )
266- else :
267- self .app .log .error (_ ("No changes requested\n " ))
Original file line number Diff line number Diff line change @@ -205,11 +205,6 @@ def take_action(self, parsed_args):
205205 if parsed_args .description :
206206 kwargs ['description' ] = parsed_args .description
207207
208- if (not kwargs and not parsed_args .property and not
209- parsed_args .state ):
210- self .app .log .error (_ ("No changes requested\n " ))
211- return
212-
213208 if parsed_args .property :
214209 volume_client .volume_snapshots .set_metadata (snapshot .id ,
215210 parsed_args .property )
@@ -271,5 +266,3 @@ def take_action(self, parsed_args):
271266 snapshot .id ,
272267 parsed_args .property ,
273268 )
274- else :
275- self .app .log .error (_ ("No changes requested\n " ))
Original file line number Diff line number Diff line change @@ -385,10 +385,6 @@ def take_action(self, parsed_args):
385385 if kwargs :
386386 volume_client .volumes .update (volume .id , ** kwargs )
387387
388- if (not kwargs and not parsed_args .property
389- and not parsed_args .image_property and not parsed_args .size ):
390- self .app .log .error (_ ("No changes requested\n " ))
391-
392388
393389class ShowVolume (command .ShowOne ):
394390 """Display volume details"""
Original file line number Diff line number Diff line change @@ -176,13 +176,6 @@ def take_action(self, parsed_args):
176176 volume_type = utils .find_resource (
177177 volume_client .volume_types , parsed_args .volume_type )
178178
179- if (not parsed_args .name
180- and not parsed_args .description
181- and not parsed_args .property
182- and not parsed_args .project ):
183- self .app .log .error (_ ("No changes requested\n " ))
184- return
185-
186179 result = 0
187180 kwargs = {}
188181 if parsed_args .name :
@@ -285,11 +278,6 @@ def take_action(self, parsed_args):
285278 parsed_args .volume_type ,
286279 )
287280
288- if (not parsed_args .property
289- and not parsed_args .project ):
290- self .app .log .error (_ ("No changes requested\n " ))
291- return
292-
293281 result = 0
294282 if parsed_args .property :
295283 try :
You can’t perform that action at this time.
0 commit comments