This commit is contained in:
Cory Hawkless 2022-11-02 16:06:53 +10:30
parent ec8ec4d40a
commit 3b4e13697d
1 changed files with 3 additions and 16 deletions

19
main.py
View File

@ -15,19 +15,6 @@ x.keystone.getCatalog()
# neutronService=x.keystone.getServicebyName("Neutron") # neutronService=x.keystone.getServicebyName("Neutron")
# print(neutronService) # print(neutronService)
neutronURL=x.keystone.getEndpointByNameIDAndInterface("NeuTrOn","internal")['url'] # neutronURL=x.keystone.getEndpointByNameIDAndInterface("NeuTrOn","internal")['url']
print(neutronURL) # print(neutronURL)
projects=x.keystone.getAllProjects()
# 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()