How to Solve NameError: name 'cfg' is not defined -- oslo

Solution: Import the 'cfg' module

# Add the following line to the top of your code
from oslo.config import cfg

 

For more information:
oslo cfg