Update liblxc error message

The error is not specific to python2, so remove the version. Also add
a test for it.
This commit is contained in:
corubba
2023-10-08 18:30:13 +02:00
parent b24c63b55f
commit a849fe6991
2 changed files with 12 additions and 1 deletions

View File

@@ -68,7 +68,7 @@ class Connection(ConnectionBase):
super(Connection, self)._connect()
if not HAS_LIBLXC:
msg = "lxc bindings for python2 are not installed"
msg = "lxc python bindings are not installed"
raise errors.AnsibleError(msg)
if self.container: