Skip to content

Commit

Permalink
Pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
mgunnala committed Nov 8, 2024
1 parent 151081d commit edec2af
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions azurelinuxagent/ga/policy/policy_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@
_MAX_SUPPORTED_POLICY_VERSION = "0.1.0"


class PolicyError(AgentError):
"""
Error raised during agent policy enforcement.
"""


class InvalidPolicyError(AgentError):
"""
Error raised if user-provided policy is invalid.
Expand All @@ -61,15 +55,6 @@ def __init__(self, msg, inner=None, code=-1):
super(ExtensionPolicyError, self).__init__(msg, inner, code)


class InvalidPolicyError(AgentError):
"""
Error raised if user-provided policy is invalid.
"""
def __init__(self, msg, inner=None):
msg = "Customer-provided policy file ('{0}') is invalid, please correct the following error: {1}".format(conf.get_policy_file_path(), msg)
super(InvalidPolicyError, self).__init__(msg, inner)


class _PolicyEngine(object):
"""
Implements base policy engine API.
Expand Down

0 comments on commit edec2af

Please sign in to comment.