diff --git a/sdcclient/_common.py b/sdcclient/_common.py index e565168a..72897411 100644 --- a/sdcclient/_common.py +++ b/sdcclient/_common.py @@ -509,7 +509,7 @@ def create_sysdig_capture(self, hostname, capture_name, duration, capture_filter capture_agent = None for agent in res[1]: - if hostname == agent['hostName']: + if hostname == agent.get('hostName'): capture_agent = agent break