Do not copy strings
image_status is a string that has no .copy() method
Change-Id: Ibd6f4c5330e8b132d8be1147a16c6275a5285d88
Closes-Issue: PROD-31979
diff --git a/_states/glancev2.py b/_states/glancev2.py
index 6664b7e..b8d169f 100644
--- a/_states/glancev2.py
+++ b/_states/glancev2.py
@@ -198,7 +198,7 @@
raise
# NOTE(pas-ha) fail the salt state if existing image is not in active state
- image_status = exact_image['status'].copy()
+ image_status = exact_image['status']
while timeout > 0 and image_status != 'active':
log.warning("Image {name} is not ACTIVE in state, waiting..".format(
name=exact_image['name']))