Browse Source

Simplified example and remove nose requirement.

nuwan_ag 10 years ago
parent
commit
1ae20f0017
2 changed files with 5 additions and 8 deletions
  1. 4 6
      example.py
  2. 1 2
      requirements.txt

+ 4 - 6
example.py

@@ -1,9 +1,7 @@
 from cloudbridge.providers.factory import CloudProviderFactory
 from cloudbridge.providers.factory import ProviderList
-from bunch import Bunch
 
-config = Bunch(access_key='<ak>',
-               secret_key='<sk>')
-
-provider = CloudProviderFactory().create_provider(ProviderList.EC2, config)
-print provider.security.list_key_pairs()
+config = {}
+provider = CloudProviderFactory().create_provider(ProviderList.OPENSTACK, config)
+# print provider.security.list_key_pairs()
+print provider.security.list_security_groups()

+ 1 - 2
requirements.txt

@@ -1,2 +1 @@
-bunch==1.01
-nose
+bunch==1.01