How to Solve NameError: name 'admin_actions' is not defined -- nova

Solution: Import the 'admin_actions' module

# Add the following line to the top of your code
from nova.policies import admin_actions

 

For more information:
nova admin_actions