1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

Increase verbosity for mount failure messages (#74)

Move these messages to level 4 not to bother people, eventually
this is a usual case for rootless.
This commit is contained in:
Sergey 2020-07-07 05:36:32 +03:00 committed by GitHub
parent 015bf00ab0
commit 7cf4b5e63a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,9 +141,9 @@ class Connection(ConnectionBase):
super(Connection, self)._connect()
rc, self._mount_point, stderr = self._podman("mount")
if rc != 0:
display.v("Failed to mount container %s: %s" % (self._container_id, stderr.strip()))
display.vvvv("Failed to mount container %s: %s" % (self._container_id, stderr.strip()))
elif not os.listdir(self._mount_point.strip()):
display.v("Failed to mount container with CGroups2: empty dir %s" % self._mount_point.strip())
display.vvvv("Failed to mount container with CGroups2: empty dir %s" % self._mount_point.strip())
self._mount_point = None
else:
self._mount_point = self._mount_point.strip()