Add debug trace

This commit is contained in:
VALLEY Antoine (T0173847) 2019-07-23 14:00:48 +02:00
parent ca7513e5a9
commit 514320eed2

View file

@ -229,6 +229,7 @@ class PortainerCLI(object):
result = self.get_stacks()
if result:
for stack in result:
logger.debug('get_stack_by_name - Name={} - EndpointId={}', stack['Name'], stack['EndpointId'])
if stack['Name'] == stack_name and stack['EndpointId'] == endpoint_id:
return stack
if mandatory: