Skip to content

Commit

Permalink
capitalize name of constant
Browse files Browse the repository at this point in the history
  • Loading branch information
russoz committed Nov 16, 2022
1 parent 23553b0 commit ea42a50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/module_utils/puppet.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from ansible_collections.community.general.plugins.module_utils.cmd_runner import CmdRunner, cmd_runner_fmt


_puppet_path_prefix = ["/opt/puppetlabs/bin"]
_PUPPET_PATH_PREFIX = ["/opt/puppetlabs/bin"]


def get_facter_dir():
Expand All @@ -23,7 +23,7 @@ def get_facter_dir():


def _puppet_cmd(module):
return module.get_bin_path("puppet", False, _puppet_path_prefix)
return module.get_bin_path("puppet", False, _PUPPET_PATH_PREFIX)


# If the `timeout` CLI command feature is removed,
Expand All @@ -32,7 +32,7 @@ def ensure_agent_enabled(module):
runner = CmdRunner(
module,
command="puppet",
path_prefix=_puppet_path_prefix,
path_prefix=_PUPPET_PATH_PREFIX,
arg_formats=dict(
_agent_disabled=cmd_runner_fmt.as_fixed(['config', 'print', 'agent_disabled_lockfile']),
),
Expand Down Expand Up @@ -84,7 +84,7 @@ def execute_func(execute, manifest):
runner = CmdRunner(
module,
command=_prepare_base_cmd(),
path_prefix=_puppet_path_prefix,
path_prefix=_PUPPET_PATH_PREFIX,
arg_formats=dict(
_agent_fixed=cmd_runner_fmt.as_fixed([
"agent", "--onetime", "--no-daemonize", "--no-usecacheonfailure",
Expand Down

0 comments on commit ea42a50

Please sign in to comment.