Skip to content

Commit ea6d6bb

Browse files
author
Jongmin Kim
committed
refactor: change transaction load logic
1 parent 8c3eea2 commit ea6d6bb

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/spaceone/core/base.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ class CoreObject(object):
66

77
def __init__(self, *args, **kwargs):
88
self.locator = Locator()
9-
self.transaction_id = None
9+
get_transaction()
1010

1111
@property
1212
def transaction(self) -> Transaction:
13-
transaction = get_transaction()
14-
if transaction:
15-
self.transaction_id = transaction.id
16-
17-
return transaction
13+
return get_transaction()

0 commit comments

Comments
 (0)