Skip to content

Commit

Permalink
Merge branch 'develop' into ext_workflow_retry
Browse files Browse the repository at this point in the history
  • Loading branch information
maddieford authored Jul 11, 2023
2 parents a4f100c + 2a761ec commit 56ba3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurelinuxagent/common/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_daemon_version():
# The agent process which execute the extensions can have different version(after upgrades) and importing version from that process may provide wrong version for daemon.
# so launching new process with sys.executable python provides the correct version for daemon which preinstalled in the image.
try:
cmd = ["{0}".format(sys.executable), "-c", "\'from azurelinuxagent.common.version import AGENT_VERSION; print(AGENT_VERSION)\'"]
cmd = ["{0}".format(sys.executable), "-c", "from azurelinuxagent.common.version import AGENT_VERSION; print(AGENT_VERSION)"]
version = shellutil.run_command(cmd)
return FlexibleVersion(version)
except Exception as e: # Make the best effort to get the daemon version, but don't fail the update if we can't. So default to 2.2.53 as env variable is not set < 2.2.53
Expand Down

0 comments on commit 56ba3df

Please sign in to comment.