Sandro Bonazzola has uploaded a new change for review. Change subject: Adapt to VDSM 3.7 StorageDomainInfo API ......................................................................
Adapt to VDSM 3.7 StorageDomainInfo API In VDSM 3.7 StorageDomainInfo returns a string for the "type" key in the result dictionary. The string should be ones between the names of the constants in the enum type StorageDomainType defined in vdsm/rpc/vdsmapi-schema.json The VDSM schema is missing GLUSTERFS but it's using it anyway. Change-Id: Id5f45d088c943c62e0e5761cca1a565616b2dcc5 See-Also: https://bugzilla.redhat.com/1215039 Bug-Url: https://bugzilla.redhat.com/1213307 Signed-off-by: Sandro Bonazzola <sbona...@redhat.com> --- M src/plugins/ovirt-hosted-engine-setup/storage/storage.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup refs/changes/03/40503/1 diff --git a/src/plugins/ovirt-hosted-engine-setup/storage/storage.py b/src/plugins/ovirt-hosted-engine-setup/storage/storage.py index 83e1087..6a25be8 100644 --- a/src/plugins/ovirt-hosted-engine-setup/storage/storage.py +++ b/src/plugins/ovirt-hosted-engine-setup/storage/storage.py @@ -337,8 +337,8 @@ 'remotePath' in domain_info and 'type' in domain_info and domain_info['type'] in ( - ohostedcons.VDSMConstants.NFS_DOMAIN, - ohostedcons.VDSMConstants.GLUSTERFS_DOMAIN, + 'NFS', + 'GLUSTERFS', ) and self._removeNFSTrailingSlash( domain_info['remotePath'] -- To view, visit https://gerrit.ovirt.org/40503 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id5f45d088c943c62e0e5761cca1a565616b2dcc5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-hosted-engine-setup Gerrit-Branch: master Gerrit-Owner: Sandro Bonazzola <sbona...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches