Skip to content

Commit

Permalink
Merge pull request #63 from QuanMPhm/56/remove_flavors
Browse files Browse the repository at this point in the history
Removed unused flavor cache functions
  • Loading branch information
knikolla authored May 16, 2024
2 parents fe0f1f9 + 4624433 commit 5d37060
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/openstack_billing_db/billing.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,6 @@ def collect_invoice_data_from_openstack(database, billing_start, billing_end, ra
return invoices


def load_flavors_cache(flavors_cache_file) -> dict[int : model.Flavor]:
with open(flavors_cache_file, "r") as f:
cache = json.load(f)

flavors = []
for flavor in cache:
flavors.append((model.Flavor(**flavor)))

return flavors


def write_flavors_cache(flavors_cache_file, flavors):
with open(flavors_cache_file, "w") as f:
f.write(json.dumps(flavors, indent=4))


def merge_coldfront_data(invoices, coldfront_data_file):
with open(coldfront_data_file, "r") as f:
allocations = json.load(f)
Expand Down

0 comments on commit 5d37060

Please sign in to comment.