Skip to content

Commit

Permalink
Update instance_setup.py
Browse files Browse the repository at this point in the history
Handle case when AGENT_VIP_IDENTITY is not set.
  • Loading branch information
craig8 authored Sep 9, 2021
1 parent efe6ec9 commit a5640dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion volttron/platform/instance_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ def func(*args, **kwargs):
_shutdown_platform()

if identity is not None:
os.environ.pop('AGENT_VIP_IDENTITY')
# If identity was specified then we don't want the global
# AGENT_VIP_IDENTITY to be set.
os.environ.pop('AGENT_VIP_IDENTITY', None)

available_agents[tag] = func
return func
Expand Down

0 comments on commit a5640dd

Please sign in to comment.