1
0
mirror of https://github.com/gryf/mistral-evacuate.git synced 2026-03-04 07:45:47 +01:00

Several typos fixed

This commit is contained in:
Roman Dobosz
2015-11-16 16:08:10 +01:00
parent 6035092c13
commit baee7e8900
3 changed files with 13 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ class FilterVmAction(NovaAction):
if str(metadata.get('evacuate')).upper() == 'TRUE':
return Result(data={'status': 0, 'uuid': self._uuid})
elif str(metadata.get('evacuate')).upper() == 'FALSE':
return Result(error='sie nie udalo!!!!1111jeden')
return Result(error='evacuate for vm %s is disabled' % self._uuid)
# ether is no metadata for vm - check flavor
flavors = client.flavors.list()
@@ -42,4 +42,4 @@ class FilterVmAction(NovaAction):
if str(evacuate).upper() == 'TRUE':
return Result(data={'status': 0, 'uuid': self._uuid})
return Result(data='1', error=True)
return Result(error='evacuate for vm %s is disabled' % self._uuid)