@@ -123,7 +123,8 @@ def list_deployments(client_inst, **kwargs):
123123 CLOUDIFY_TENANT_HEADER )
124124 if not tenant_name :
125125 tenant_name = DEFAULT_TENANT_NAME
126- all_node_instances = _topology_filter (client_inst , lambda x : True , ** kwargs )
126+ all_node_instances = _topology_filter (
127+ client_inst , lambda x : True , ** kwargs )
127128 deployments = {(x ['tenant_name' ], x ['deployment_id' ])
128129 for x in all_node_instances }
129130 deployments = [Deployment ({'id' : b , 'tenant_name' : a }) for a , b in
@@ -137,7 +138,8 @@ def list_deployments(client_inst, **kwargs):
137138
138139 def list_nodes (client_inst , ** kwargs ):
139140 node_ids = kwargs .get ('id' )
140- all_node_instances = _topology_filter (client_inst , lambda x : True , ** kwargs )
141+ all_node_instances = _topology_filter (
142+ client_inst , lambda x : True , ** kwargs )
141143 nodes = {(x ['tenant_name' ], x ['deployment_id' ], x ['node_id' ])
142144 for x in all_node_instances }
143145 nodes = [Node ({'id' : c , 'deployment_id' : b , 'tenant_name' : a }) for
@@ -409,8 +411,9 @@ def _wait_side_effect(*args, **kwargs):
409411 with patch ('cloudify_cli.commands.agents.wait_for_execution' ,
410412 return_value = PropertyMock (error = False ),
411413 side_effect = _wait_side_effect ), \
412- patch .object (ExecutionsClient , 'start' , _mock_execution_start ), \
413- patch ('cloudify_cli.commands.agents.time.sleep' ):
414+ patch .object (
415+ ExecutionsClient , 'start' , _mock_execution_start ), \
416+ patch ('cloudify_cli.commands.agents.time.sleep' ):
414417
415418 get_deployments_and_run_workers (
416419 self .client , self ._agent_filters (), True , self .logger ,
0 commit comments