Skip to content

Commit 07497e0

Browse files
author
Martin Kudlej
committed
fix bug in method init function
1 parent 382c2e0 commit 07497e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

threescale_api_crd/resources.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3212,10 +3212,10 @@ def __init__(self, entity_name="system_name", **kwargs):
32123212

32133213
self.entity_id = entity["id"]
32143214
super().__init__(crd=crd, entity=entity, entity_name=entity_name, **kwargs)
3215-
3216-
# this is not here because of some backup, but because we need to have option
3217-
# to creater empty object without any data. This is related to "lazy load"
3218-
super().__init__(entity_name=entity_name, **kwargs)
3215+
else:
3216+
# this is not here because of some backup, but because we need to have option
3217+
# to creater empty object without any data. This is related to "lazy load"
3218+
super().__init__(entity_name=entity_name, **kwargs)
32193219

32203220
@property
32213221
def metric(self) -> "Metric":

0 commit comments

Comments
 (0)