summaryrefslogtreecommitdiff
path: root/cloudinit/sources/helpers
diff options
context:
space:
mode:
authorRobert Schweikert <rjschwei@suse.com>2022-03-01 03:39:14 -0500
committerGitHub <noreply@github.com>2022-03-01 09:39:14 +0100
commit3642ed7c63fbd2fb67630b21efdb321c7e99b913 (patch)
tree994f2c0922ed2b08edad210d81d4bd3d27eb2a7d /cloudinit/sources/helpers
parentf106b2f78e36c464158672b18b64f89ca63b709a (diff)
downloadcloud-init-git-3642ed7c63fbd2fb67630b21efdb321c7e99b913.tar.gz
Stop hardcoding systemctl location (#1278)
Expect that "systemctl" is found in the PATH. Using the '/bin' prefix is very distribution specific. A number of distributions are moving all executables from '/' to '/usr'.
Diffstat (limited to 'cloudinit/sources/helpers')
-rwxr-xr-xcloudinit/sources/helpers/azure.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/sources/helpers/azure.py b/cloudinit/sources/helpers/azure.py
index d07dc3c0..0a9f1f45 100755
--- a/cloudinit/sources/helpers/azure.py
+++ b/cloudinit/sources/helpers/azure.py
@@ -115,7 +115,7 @@ def get_boot_telemetry():
try:
out, _ = subp.subp(
- ["/bin/systemctl", "show", "-p", "UserspaceTimestampMonotonic"],
+ ["systemctl", "show", "-p", "UserspaceTimestampMonotonic"],
capture=True,
)
tsm = None
@@ -140,7 +140,7 @@ def get_boot_telemetry():
try:
out, _ = subp.subp(
[
- "/bin/systemctl",
+ "systemctl",
"show",
"cloud-init-local",
"-p",