Skip to content

Commit

Permalink
Fix exception in case no hostname label is available (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
alblasco authored Aug 5, 2024
1 parent 8ca6764 commit aef4bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdcclient/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit aef4bba

Please sign in to comment.