Skip to content

Commit aef4bba

Browse files
authored
Fix exception in case no hostname label is available (#255)
1 parent 8ca6764 commit aef4bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdcclient/_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def create_sysdig_capture(self, hostname, capture_name, duration, capture_filter
509509
capture_agent = None
510510

511511
for agent in res[1]:
512-
if hostname == agent['hostName']:
512+
if hostname == agent.get('hostName'):
513513
capture_agent = agent
514514
break
515515

0 commit comments

Comments
 (0)