mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-03-27 05:53:02 +00:00
Merge "server_volume: check specified server is found"
This commit is contained in:
@@ -89,6 +89,9 @@ class ServerVolumeModule(OpenStackModule):
|
||||
server = self.conn.get_server(self.params['server'])
|
||||
volume = self.conn.get_volume(self.params['volume'])
|
||||
|
||||
if not server:
|
||||
self.fail(msg='server %s is not found' % self.params['server'])
|
||||
|
||||
if not volume:
|
||||
self.fail(msg='volume %s is not found' % self.params['volume'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user