mirror of https://github.com/apache/cloudstack.git
Small fixes
This commit is contained in:
parent
85434f49b9
commit
6a016d5b54
|
|
@ -666,7 +666,8 @@ def main(argv):
|
|||
continue
|
||||
ip = CsIP(dev)
|
||||
for address in dbag[dev]:
|
||||
CsRoute(dev).add(address)
|
||||
if not address["nw_type"] == "control":
|
||||
CsRoute(dev).add(address)
|
||||
ip.setAddress(address)
|
||||
if ip.configured():
|
||||
logging.info("Address %s on device %s already configured", ip.ip(), dev)
|
||||
|
|
|
|||
|
|
@ -166,6 +166,6 @@ class loadQueueFile:
|
|||
def __moveFile(self, origPath, path):
|
||||
if not os.path.exists(path):
|
||||
os.makedirs(path)
|
||||
timestamp = str(round(time.time()))
|
||||
timestamp = str(int(round(time.time())))
|
||||
os.rename(origPath, path + "/" + self.fileName + "." + timestamp)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue