Skip to content

AttributeError: 'NoneType' object has no attribute '__name__' #14054

Description

@praveen-pk

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az storage container create

Errors:

'NoneType' object has no attribute '__name__'
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
    raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
...
cli/command_modules/storage/_client_factory.py, ln 27, in get_storage_data_service_client
    return get_data_service_client(cli_ctx, service, name, key, connection_string, sas_token,
cli/core/commands/client_factory.py, ln 178, in get_data_service_client
    logger.debug('Getting data service client service_type=%s', service_type.__name__)
AttributeError: 'NoneType' object has no attribute '__name__'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • az storage container create --name {}

Expected Behavior

Environment Summary

Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.2.5
Python 3.8.3
Installer: RPM

azure-cli 2.7.0

Extensions:
azure-devops 0.17.0

$ cat /etc/os-release
NAME=Fedora
VERSION="32 (Container Image)"
ID=fedora
VERSION_ID=32
VERSION_CODENAME=""
PLATFORM_ID="platform:f32"
PRETTY_NAME="Fedora 32 (Container Image)"

$ rpm -qa | grep azure
azure-cli-2.7.0-1.el7.x86_64

Additional Context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions