mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
setup: properly detect is_chroot on Btrfs (#55089)
* setup: properly detect is_chroot on Btrfs Fixes #55006 * Use get_bin_path for stat * Remove comment
This commit is contained in:
@@ -508,7 +508,7 @@ def main():
|
||||
if rc != 0:
|
||||
module.fail_json(msg="Unable to %s service %s: %s" % (action, unit, err))
|
||||
# check for chroot
|
||||
elif is_chroot():
|
||||
elif is_chroot(module):
|
||||
module.warn("Target is a chroot. This can lead to false positives or prevent the init system tools from working.")
|
||||
else:
|
||||
# this should not happen?
|
||||
|
||||
Reference in New Issue
Block a user