Giter Site home page Giter Site logo

[BUG] TypeError: azure.identity._credentials.managed_identity.ManagedIdentityCredential() got multiple values for keyword argument 'client_id' about saltext-azurerm HOT 1 CLOSED

redranger250 avatar redranger250 commented on July 21, 2024 2
[BUG] TypeError: azure.identity._credentials.managed_identity.ManagedIdentityCredential() got multiple values for keyword argument 'client_id'

from saltext-azurerm.

Comments (1)

corey-hammerton avatar corey-hammerton commented on July 21, 2024

I get the same TypeError when running the list_nodes function. I've confirmed that I have only one client_id value defined

[ERROR   ] There was an error running the function: azure.identity._credentials.managed_identity.ManagedIdentityCredential() got multiple values for keyword argument 'client_id'
Traceback (most recent call last):
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/cli.py", line 242, in run
    ret = mapper.do_function(
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/__init__.py", line 1567, in do_function
    return {alias: {driver: self.clouds[fun](call="function")}}
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 159, in __call__
    ret = self.loader.run(run_func, *args, **kwargs)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 1245, in run
    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 1260, in _run_as
    return _func_or_method(*args, **kwargs)
  File "/opt/saltstack/salt/extras-3.10/saltext/azurerm/clouds/azurerm.py", line 466, in list_nodes
    nodes = list_nodes_full()
  File "/opt/saltstack/salt/extras-3.10/saltext/azurerm/clouds/azurerm.py", line 483, in list_nodes_full
    netapi_versions = get_api_versions(
  File "/opt/saltstack/salt/extras-3.10/saltext/azurerm/clouds/azurerm.py", line 186, in get_api_versions
    resconn = get_conn(client_type="resource")
  File "/opt/saltstack/salt/extras-3.10/saltext/azurerm/clouds/azurerm.py", line 260, in get_conn
    client = saltext.azurerm.utils.azurerm.get_client(client_type=client_type, **conn_kwargs)
  File "/opt/saltstack/salt/extras-3.10/saltext/azurerm/utils/azurerm.py", line 161, in get_client
    credentials, subscription_id, cloud_env = _determine_auth(**kwargs)
  File "/opt/saltstack/salt/extras-3.10/saltext/azurerm/utils/azurerm.py", line 102, in _determine_auth
    credentials = DefaultAzureCredential(authority=authority, **kwargs)
  File "/opt/saltstack/salt/extras-3.10/azure/identity/_credentials/default.py", line 126, in __init__
    credentials.append(ManagedIdentityCredential(client_id=managed_identity_client_id, **kwargs))
TypeError: azure.identity._credentials.managed_identity.ManagedIdentityCredential() got multiple values for keyword argument 'client_id'

from saltext-azurerm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.