novang state fix
Change-Id: Iede92a4ac2644f38c200475eb3bf45f2d84b170d
diff --git a/_states/novang.py b/_states/novang.py
index 224757c..4bc94a8 100644
--- a/_states/novang.py
+++ b/_states/novang.py
@@ -44,7 +44,7 @@
'result': False,
'comment': 'Cell "{0}" does not exists'.format(name)}
cell_uuid = __salt__['cmd.shell']('nova-manage cell_v2 list_cells 2>&- | grep ' + name + ' | tr -d \"\n\" | awk \'{print $4}\'')
- if not cell_uuid:
+ if cell_uuid:
try:
__salt__['cmd.shell']('nova-manage cell_v2 map_instances --cell_uuid ' + cell_uuid)
ret['result'] = True