trove/trove/conductor
Zhao Chao 3b726f3013 report_root should always use context.user
The RootHistory intends to record by whom and when the root user of the
underlying datastore backend was enabled. So the "user" column should
always be set to the context user, not the actual root user in the
database. But report_root(and report_root_enabled in
taskmanager.models) use the database user instead, this is not correct,
This patch will fix.

Also remove the "user" argument from Root.create() and
HistoryRoot.create() because the context is already passed in as an
argument when these methods are called.

Closes-Bug: #1546372
Change-Id: I3b4c8ee56c7e0876fb384f0c5841d2d391bd555d
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-02-07 17:05:54 +08:00
..
__init__.py Remove copyright from empty files 2014-01-16 13:13:23 +04:00
api.py report_root should always use context.user 2018-02-07 17:05:54 +08:00
manager.py report_root should always use context.user 2018-02-07 17:05:54 +08:00
models.py Trivial: Remove unused logging import 2016-04-23 19:32:00 +08:00