Converted all these files from python 2 to python 3 syntax usong 2to3 library (demo3-microservices.py,demo4-scale-out-add-worker.py,demo4-scale-out.py,demo5-1-durable-storage.py,demo5-2-backup-fractals.py,destroy-all-demo-instances.py)
This commit is contained in:
		@@ -70,7 +70,7 @@ def main():
 | 
			
		||||
    for instance in conn.list_nodes():
 | 
			
		||||
        if instance.name in ['all-in-one', 'app-worker-1', 'app-worker-2', 'app-worker-3', 'app-controller',
 | 
			
		||||
                             'app-services', 'app-api-1', 'app-api-2']:
 | 
			
		||||
            print('Destroying Instance: %s' % instance.name)
 | 
			
		||||
            print(('Destroying Instance: %s' % instance.name))
 | 
			
		||||
            conn.destroy_node(instance)
 | 
			
		||||
 | 
			
		||||
    # wait until all nodes are destroyed to be able to remove depended security groups
 | 
			
		||||
@@ -89,7 +89,7 @@ def main():
 | 
			
		||||
    # delete security groups
 | 
			
		||||
    for group in conn.ex_list_security_groups():
 | 
			
		||||
        if group.name in ['control', 'worker', 'api', 'services']:
 | 
			
		||||
            print('Deleting security group: %s' % group.name)
 | 
			
		||||
            print(('Deleting security group: %s' % group.name))
 | 
			
		||||
            conn.ex_delete_security_group(group)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user