Skip to content

Commit

Permalink
Merge branch 'develop' into cheerypick-agentmanifest
Browse files Browse the repository at this point in the history
  • Loading branch information
nagworld9 authored Oct 3, 2023
2 parents 5a6c66e + c5181c0 commit 4c04eb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions azurelinuxagent/ga/extensionprocessutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def _check_noexec():
"""
Check if /var is mounted with the noexec flag.
"""
# W0603: Using the global statement (global-statement)
# OK to disable; _COLLECT_NOEXEC_ERRORS is used only within _check_noexec, but needs to persist across calls.
global _COLLECT_NOEXEC_ERRORS # pylint: disable=W0603

try:
agent_dir = conf.get_lib_dir()
with open('/proc/mounts', 'r') as f:
Expand Down

0 comments on commit 4c04eb6

Please sign in to comment.