1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

dms terminates instance if id matches

This commit is contained in:
Jerry Seutter 2014-11-24 16:49:01 -07:00
parent b220cffcf4
commit 9ec1373d36

View File

@ -59,7 +59,7 @@ class Rackspace(object):
self.rksp.set_region(self.region) self.rksp.set_region(self.region)
for server in self.rksp.list_instances(): for server in self.rksp.list_instances():
log.debug("Checking server: %s" % (server.name)) log.debug("Checking server: %s" % (server.name))
if server.name.lower() == self.hostname.lower() and server.id == self.instance_id: if server.id == self.instance_id:
log.info("Found matching instance: %s" % (server.id)) log.info("Found matching instance: %s" % (server.id))
log.info("Startup id: %s" % (self.instance_id)) log.info("Startup id: %s" % (self.instance_id))
return server return server