summaryrefslogtreecommitdiffstats
path: root/engine/src/valet/engine/resource_manager/nova_compute.py
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/valet/engine/resource_manager/nova_compute.py')
-rw-r--r--engine/src/valet/engine/resource_manager/nova_compute.py40
1 files changed, 20 insertions, 20 deletions
diff --git a/engine/src/valet/engine/resource_manager/nova_compute.py b/engine/src/valet/engine/resource_manager/nova_compute.py
index 6887eb8..50de589 100644
--- a/engine/src/valet/engine/resource_manager/nova_compute.py
+++ b/engine/src/valet/engine/resource_manager/nova_compute.py
@@ -1,21 +1,21 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2019 AT&T Intellectual Property
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# -------------------------------------------------------------------------
-#
+#
+# -------------------------------------------------------------------------
+# Copyright (c) 2019 AT&T Intellectual Property
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# -------------------------------------------------------------------------
+#
import json
import time
import traceback
@@ -141,7 +141,7 @@ class NovaCompute(object):
# TODO: Get AZ first with init Compute Hosts?
- for hk, h_info in a.hosts.iteritems():
+ for hk, h_info in a.hosts.items():
if "nova-compute" in h_info.keys():
if h_info["nova-compute"]["active"] and \
h_info["nova-compute"]["available"]:
@@ -538,7 +538,7 @@ class NovaCompute(object):
flavor.disk_cap = root_gb + ephemeral_gb + swap_mb / float(1024)
extra_specs = _f.get_keys()
- for sk, sv in extra_specs.iteritems():
+ for sk, sv in extra_specs.items():
flavor.extra_specs[sk] = sv
return flavor