]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
validate: fix notario error
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 23 Apr 2019 13:19:26 +0000 (15:19 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 23 Apr 2019 13:47:42 +0000 (09:47 -0400)
commitfa388f51cbff75f878cb7b096198f43e515c9ea7
tree81a9d9905eea9f27efbae183395af2fec3fce7a9
parentcd0eddc460a29860d4e6894c0afdbed8aad136ea
validate: fix notario error

Typical error:

```
AttributeError: 'Invalid' object has no attribute 'message'
```

As of python 2.6, `BaseException.message` has been deprecated.
When using python3, it fails because it has been removed.

Let's use `str(error)` instead so we don't hit this error when using
python3.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 2326180bf98ef311ebddb8c6e18d83ae819cd29f)
plugins/actions/validate.py