Skip to content

Commit

Permalink
Check nfs_version properly (ansible#58574)
Browse files Browse the repository at this point in the history
* Check nfs_version properly
original commit: machacekondra/ovirt-ansible-roles@63f81d2

* Add a space to fix the identation
  • Loading branch information
GarretSchumann authored and ansibot committed Jul 2, 2019
1 parent 7f15331 commit 6e9bcc2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ansible/modules/cloud/ovirt/ovirt_storage_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ def build_entity(self):
return otypes.StorageConnection(
address=self.param('address'),
path=self.param('path'),
nfs_version=self.param('nfs_version'),
nfs_version=otypes.NfsVersion(
self.param('nfs_version')
) if self.param('nfs_version') is not None else None,
nfs_timeo=self.param('nfs_timeout'),
nfs_retrans=self.param('nfs_retrans'),
mount_options=self.param('mount_options'),
Expand Down Expand Up @@ -187,7 +189,7 @@ def update_check(self, entity):
return (
equal(self.param('address'), entity.address) and
equal(self.param('path'), entity.path) and
equal(self.param('nfs_version'), entity.nfs_version) and
equal(self.param('nfs_version'), str(entity.nfs_version)) and
equal(self.param('nfs_timeout'), entity.nfs_timeo) and
equal(self.param('nfs_retrans'), entity.nfs_retrans) and
equal(self.param('mount_options'), entity.mount_options) and
Expand Down

0 comments on commit 6e9bcc2

Please sign in to comment.