Skip to content

Commit 2520dde

Browse files
committed
auto_destroy option fix
1 parent c578dbf commit 2520dde

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name = 'stackimpact',
5-
version = '1.1.4',
5+
version = '1.1.5',
66
description = 'StackImpact Python Agent',
77
author = 'StackImpact',
88
author_email = 'devops@stackimpact.com',

stackimpact/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
class Agent:
2828

29-
AGENT_VERSION = "1.1.4"
29+
AGENT_VERSION = "1.1.5"
3030
SAAS_DASHBOARD_ADDRESS = "https://agent-api.stackimpact.com"
3131

3232
def __init__(self, **kwargs):
@@ -113,7 +113,7 @@ def _signal_handler(signum, frame):
113113
if not runtime_info.OS_WIN:
114114
register_signal(signal.SIGUSR2, _signal_handler)
115115

116-
if self.get_option('auto_destroy') == False:
116+
if self.get_option('auto_destroy') is None or self.get_option('auto_destroy') is True:
117117
# destroy agent on exit
118118
def _exit_handler(*arg):
119119
if not self.agent_started or self.agent_destroyed:

0 commit comments

Comments
 (0)