diff --git a/main.py b/main.py index 555d020..cf5fcf4 100644 --- a/main.py +++ b/main.py @@ -15,19 +15,6 @@ x.keystone.getCatalog() # neutronService=x.keystone.getServicebyName("Neutron") # print(neutronService) -neutronURL=x.keystone.getEndpointByNameIDAndInterface("NeuTrOn","internal")['url'] -print(neutronURL) - -# token = ng_openstack.auth.getToken(os.getenv("OS_USERNAME"), os.getenv("OS_PASSWORD"), -# os.getenv("OS_USER_DOMAIN_NAME"), os.getenv("OS_USER_DOMAIN_NAME"), -# os.getenv("OS_PROJECT_ID")) -# print(token) - -# # print(json.dumps(ng_openstack.keystone.getAllProjects(), indent=4)) -# cat=ng_openstack.keystone.getCatalog() - - -# print (ng_openstack.keystone.getServicebyID("11f21a87fdaa4f5d9bd93c7396bdd93c")) - -# # openstack=newOpenstack.connect() -# # projects=openstack.projects.getAll() \ No newline at end of file +# neutronURL=x.keystone.getEndpointByNameIDAndInterface("NeuTrOn","internal")['url'] +# print(neutronURL) +projects=x.keystone.getAllProjects() \ No newline at end of file