adjutant/stacktask/actions
Amelia Cordwell 607cc93d67 Added auto approval as part of actions
In actions pre-approve stage the function self.set_auto_approve()
can be called, to identify the action as one that is allowed to
be pre-approved. (True, False and None can be specified). If the
function has not been called when auto_approve is accessed it will
default to None. This is saved as a new attribute in the actions
model.

At the task layer before process_actions finishes, it checks to
see the status of it's actions auto_approve. If none of these are
False and at least one of them is True it will auto approve
if all of it's actions have auto_approve set to true, if so
instead of returning it it will run (and return the values of)
the approve function.

ResetPassword is the only pre-approved action that has not been
switched to this way, due to possible security implications, as
it would return 'actions invalid' if the user did not exist.

Change-Id: I678849d212b7e91de541120e0d70ddf08cf9b488
2017-04-20 09:00:54 +12:00
..
migrations Added auto approval as part of actions 2017-04-20 09:00:54 +12:00
v1 Added auto approval as part of actions 2017-04-20 09:00:54 +12:00
__init__.py notification changes 2015-11-10 14:04:04 +13:00
models.py Added auto approval as part of actions 2017-04-20 09:00:54 +12:00
openstack_clients.py Adding Quota Update Action 2016-11-01 14:48:04 +00:00
user_store.py Replaced find_region with get_region 2016-12-06 01:19:16 +13:00