Commits

Enis Afgan committed 3a3cd1f

Fix cluster deletetion performed via API

Comments (0)

Files changed (1)

cm/controllers/root.py

 
     @expose
     def kill_all(self, trans, terminate_master_instance=False, delete_cluster=False):
-        if delete_cluster:
+        print "delete_cluster='%s'" % delete_cluster
+        if delete_cluster in ['True', 'true', 'on']:
             delete_cluster = True
+        else:
+            delete_cluster = False
         if terminate_master_instance:
             self.app.manager.terminate_master_instance(delete_cluster=delete_cluster)
             return self.instance_state_json(trans)