Pass kwargs from execute to transaction()

Change-Id: If2f84a9ad3f5c735fd3e8d8e9166f629e587defb
This commit is contained in:
Terry Wilson 2019-02-28 08:00:05 -06:00
parent 25abc29f91
commit ae5b175584
1 changed files with 3 additions and 3 deletions

View File

@ -31,13 +31,13 @@ class BaseCommand(api.Command):
self.api = api
self.result = None
def execute(self, check_error=False, log_errors=True):
def execute(self, check_error=False, log_errors=True, **kwargs):
try:
if self.READ_ONLY:
self.run_idl(None)
return self.result
with self.api.transaction(check_error, log_errors) as txn:
txn.add(self)
with self.api.transaction(check_error, log_errors, **kwargs) as t:
t.add(self)
return self.result
except Exception:
if log_errors: