Closed serenapotts3 closed 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()
I see this has been fixed very recently - I was working on this in early April before the bug was fixed.
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()