Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Sep 21, 2023
1 parent 93614e2 commit d27ea66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion changelog
Original file line number Diff line number Diff line change
Expand Up @@ -743,5 +743,8 @@ IM 1.15.0:
* Enable to set root disk size in EC2, Azure and GCE conns.
* Return error if instance is not get in stop, start, reboot ops in EC2 conn
* Fix error in OSCAR or Lambda cons with env variables with ":"
* Improve performance in Infrastructure List operation
* Improve performance in Infrastructure List operation.
WARNING: It requires a DB update.
Please make a copy of the DB before applying the script.
Use scripts/db_1_14_X_to_1_15_X.py to update it.
* Add requests-cache to improve performance in TOSCA parsing
4 changes: 2 additions & 2 deletions scripts/db_1_14_X_to_1_15_X.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_data_from_db(db, inf_id):
if len(res) > 0:
elem = res[0]
if db.db_type == DataBase.MONGO:
data = elem[data]
data = elem["data"]
else:
data = elem[0]
try:
Expand Down Expand Up @@ -82,7 +82,7 @@ def get_data_from_db(db, inf_id):
res = db.update("inf_list", {"id": inf_id}, {"auth": auth})
else:
res = db.execute("UPDATE `inf_list` SET `auth` = %s WHERE id = %s", (auth, inf_id))
except Exception as e:
except Exception:
sys.stderr.write("Error updating auth field in Inf ID: %s. Ignoring.\n" % inf_id)
else:
sys.stdout.write("There are no inf_list table. Do not need to update.")
Expand Down

0 comments on commit d27ea66

Please sign in to comment.