Automation fix for UnboundLocalError
Issue Found:
UnboundLocalError: local variable 'version'
Addressed Issue:
Added variable version with empty data
Change-Id: Iddc2f594120954772d29dc166bb3435c4cf76209
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/lib/code_update_utils.py b/lib/code_update_utils.py
index 0ade9fb..6fceeb9 100644
--- a/lib/code_update_utils.py
+++ b/lib/code_update_utils.py
@@ -149,6 +149,7 @@
version inside the MANIFEST.
"""
+ version = ""
tar = tarfile.open(tar_file_path)
for member in tar.getmembers():
f = tar.extractfile(member)