summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/batch.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins/batch.py')
-rw-r--r--ipalib/plugins/batch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipalib/plugins/batch.py b/ipalib/plugins/batch.py
index 2da7b7ca8..42edba2ad 100644
--- a/ipalib/plugins/batch.py
+++ b/ipalib/plugins/batch.py
@@ -107,7 +107,10 @@ class batch(Command):
result = api.Command[name](*a, **newkw)
self.info(
- '%s: batch: %s(%s): SUCCESS', context.principal, name, ', '.join(api.Command[name]._repr_iter(**params))
+ '%s: batch: %s(%s): SUCCESS',
+ getattr(context, 'principal', 'UNKNOWN'),
+ name,
+ ', '.join(api.Command[name]._repr_iter(**params))
)
result['error']=None
except Exception as e: