clean-engineer-75963
12/06/2019, 10:32 PMToken
, from this file: https://github.com/pulumi/pulumi-vault/blob/master/sdk/python/pulumi_vault/token.pytoken
in the same directory as the file token.py
, and I think that's shadowing the import.my_token = pulumi_vault.Token(...)
, I get:AttributeError: module 'pulumi_vault' has no attribute 'Token'
In [1]: import pulumi_vault
In [2]: dir(pulumi_vault)
Out[2]:
['Audit',
'AuthBackend',
'AuthBackendRole',
'AwaitableGetPolicyDocumentResult',
'CertAuthBackendRole',
'EgpPolicy',
'GetPolicyDocumentResult',
'MfaDuo',
'Mount',
'Namespace',
'Policy',
'Provider',
'RgpPolicy',
'Union',
'__all__',
'__builtins__',
'__cached__',
'__doc__',
'__file__',
'__loader__',
'__name__',
'__package__',
'__path__',
'__spec__',
'app_role',
'audit',
'auth_backend',
'auth_backend_role',
'aws',
'azure',
'cert_auth_backend_role',
'consul',
'database',
'egp_policy',
'gcp',
'generic',
'get_policy_document',
'github',
'identity',
'importlib',
'json',
'jwt',
'kubernetes',
'l_dap',
'mfa_duo',
'mount',
'namespace',
'okta',
'pkg',
'pki_secret',
'policy',
'provider',
'pulumi',
'rabbit_mq',
'rgp_policy',
'ssh',
'tables',
'token',
'transit',
'utilities',
'warnings']
white-balloon-205
12/07/2019, 4:01 AM