commit | 12a49c6495673f5dd35618b3dd535004ef7fd884 | [log] [tgz] |
---|---|---|
author | Ildar Svetlov <isvetlov@mirantis.com> | Mon Dec 02 13:13:19 2019 +0400 |
committer | Ildar Svetlov <isvetlov@mirantis.com> | Mon Dec 02 13:13:19 2019 +0400 |
tree | d736111bf1139ba51b1fc6223a83116a4074f224 | |
parent | f611358f5b41f5173f17010bcb2290dd5ffbd89e [diff] |
Make MaxOverSubscriptionRatio optional since this field is optional we have to provide a possibility to leave it empty Change-Id: Ida453a1b09b0c493f823ecf50c343f4230b7697a Related-PROD: PROD-33588
diff --git a/openstack/blockstorage/extensions/schedulerstats/results.go b/openstack/blockstorage/extensions/schedulerstats/results.go index 95eaaed..0dc47ec 100644 --- a/openstack/blockstorage/extensions/schedulerstats/results.go +++ b/openstack/blockstorage/extensions/schedulerstats/results.go
@@ -87,6 +87,8 @@ r.MaxOverSubscriptionRatio = t case float64: r.MaxOverSubscriptionRatio = strconv.FormatFloat(t, 'f', -1, 64) + case nil: + r.MaxOverSubscriptionRatio = "" default: return fmt.Errorf("MaxOverSubscriptionRatio has unexpected type: %T", t) }