Skip to content

Commit

Permalink
Fix the model
Browse files Browse the repository at this point in the history
With the arg in __init__ was making all queries fail
  • Loading branch information
enolfc committed Jul 22, 2024
1 parent ee537c2 commit 9e3141f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions egi_notebooks_accounting/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class VM(BaseModel):
site = "EGI-NOTEBOOKS"
cloud_type = "EGI Notebooks"
cloud_compute_service = None
default_vo = "vo.notebooks.egi.eu"

namespace = CharField()
primary_group = None
Expand Down Expand Up @@ -45,10 +44,6 @@ class VM(BaseModel):
public_ip_count = IntegerField(default=0, null=True)
flavor = CharField(null=True)

def __init__(self):
super().__init__()
self.default_vo = VM.default_vo

def as_dict(self):
r = {
"VMUUID": self.local_id,
Expand Down

0 comments on commit 9e3141f

Please sign in to comment.