opentelekomcloud / python-otcclient

(Obsolete) Python bindings to the T-Systems OTC API
MIT License
15 stars 20 forks source link

Unable to delete Subnet #52

Closed serenapotts3 closed 7 years ago

serenapotts3 commented 7 years ago

running the following code fails as the REST API call to delete a subnet in OTC is missing a slash in the URL.

from otcclient.core.OtcConfig import OtcConfig from otcclient.plugins.ecs.ecs import ecs

OtcConfig.VPCNAME = 'vpc-name' ecs.convertVPCNameToId() OtcConfig.SUBNETNAME = 'subnet-name' ecs.convertSUBNETNameToId() ecs.delete_subnet()

serenapotts3 commented 7 years ago

I see this has been fixed very recently - I was working on this in early April before the bug was fixed.