I have multiple clouds and want to send the provider name as input parameter to the get_driver function in apache libcloud.
Asked
Active
Viewed 38 times
0
-
Are you wanting to send a provider name to your Python script as a parameter and you wanted that parameter to somehow be a valid `get_driver` parameter? If you can edit your question and add an example of what you are trying to do and where the issue is, we might be able to help. – zedfoxus Apr 24 '19 at 04:42
-
Can you edit your question and add your code? – zedfoxus Apr 24 '19 at 04:54
-
This is my code. provider = input("Who is the cloud provider?") cls = get_driver(Provider.provider) driver = cls('xxxxxxxxxxxxxxxxxx',api_version='v2') pprint(driver.list_nodes()) When I provide the input as DIGITAL_OCEAN. I am getting an error 'AttributeError: Provider DIGITAL_OCEAN does not exist' – SANTA RAVI ANEPU Apr 24 '19 at 04:56