From 8e9c3c7267adb927518f4e86934ae7bb44106ad5 Mon Sep 17 00:00:00 2001 From: Felipe de Mello <13694949+fdemello@users.noreply.github.com> Date: Tue, 5 Mar 2019 18:13:42 -0500 Subject: [PATCH] Update hyperflex_cluster.py I came across a moid with the following: "HypervisorType": "Hyper-V", "HypervisorVersion": "Windows Server 2016", hence I'm adding Hyper-V to the allowed_values list. I couldn't find other HyperV environments to check if the value is always Hyper-V or if it can be HyperV as well. --- intersight/models/hyperflex_cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intersight/models/hyperflex_cluster.py b/intersight/models/hyperflex_cluster.py index 7f5f896e..e1062072 100644 --- a/intersight/models/hyperflex_cluster.py +++ b/intersight/models/hyperflex_cluster.py @@ -605,7 +605,7 @@ def hypervisor_type(self, hypervisor_type): :param hypervisor_type: The hypervisor_type of this HyperflexCluster. :type: str """ - allowed_values = ["Unknown", "HyperV", "ESXi"] + allowed_values = ["Unknown", "HyperV", "Hyper-V", "ESXi"] if hypervisor_type not in allowed_values: raise ValueError( "Invalid value for `hypervisor_type` ({0}), must be one of {1}"