'NoneType' object has no attribute 'lower'
Traceback (most recent call last):
Temp\pip-install-p8t_6awn\knack\knack\cli.py, ln 206, in invoke
azure\cli\core\commands\__init__.py, ln 603, in execute
azure\cli\core\commands\__init__.py, ln 661, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 654, in _run_job
Local\Temp\pip-install-p8t_6awn\six\six.py, ln 693, in reraise
azure\cli\core\commands\__init__.py, ln 631, in _run_job
azure\cli\core\commands\__init__.py, ln 306, in __call__
azure-cli-core\azure\cli\core\__init__.py, ln 485, in default_command_handler
azure\cli\command_modules\appservice\access_restrictions.py, ln 94, in remove_webapp_access_restriction
AttributeError: 'NoneType' object has no attribute 'lower'
An updated list of rules should be returned.
Windows-10-10.0.16299-SP0
Python 3.6.6
Shell: powershell.exe
azure-cli 2.0.75
Describe the bug
Command Name
az webapp config access-restriction removeErrors:
To Reproduce:
az webapp config access-restriction remove --rule-name {} -g {} -n {}Expected Behavior
An updated list of rules should be returned.
Environment Summary
Additional Context
It seems the error is this line: https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/appservice/access_restrictions.py#L94
It does not expect
rule.nameto be None, even though it is possible to create rules without a name both in the GUI and previous ARM-versions (e.g. web sites (2016-08-01))