Commit 24596fb2 authored by Pavel Spirek's avatar Pavel Spirek

Datastore method fix

parent ec2b52ff
...@@ -240,7 +240,7 @@ class BaseDatastore: ...@@ -240,7 +240,7 @@ class BaseDatastore:
return self._yang_lib_data return self._yang_lib_data
# Journal manipulation methods # Journal manipulation methods
def make_user_journal(self, username: str, transaction_opts: Optional[JsonNodeT]): def make_user_journal(self, username: str):
usr_journal = self._usr_journals.get(username) usr_journal = self._usr_journals.get(username)
if usr_journal is not None: if usr_journal is not None:
raise StagingDataException("Transaction for user \"{}\" already opened".format(username)) raise StagingDataException("Transaction for user \"{}\" already opened".format(username))
...@@ -267,7 +267,7 @@ class BaseDatastore: ...@@ -267,7 +267,7 @@ class BaseDatastore:
usr_journal = self.get_user_journal(username) usr_journal = self.get_user_journal(username)
except StagingDataException: except StagingDataException:
info("Starting new transaction for user \"{}\"".format(username)) info("Starting new transaction for user \"{}\"".format(username))
self.make_user_journal(username, None) self.make_user_journal(username)
usr_journal = self.get_user_journal(username) usr_journal = self.get_user_journal(username)
root = usr_journal.get_root_head() root = usr_journal.get_root_head()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment