This commit is contained in:
Vyacheslav Anzhiganov 2016-08-21 15:14:58 +03:00
parent 856432c58e
commit 69ba93c824
3 changed files with 2 additions and 10 deletions

View file

@ -119,7 +119,6 @@ class QEMU:
""" """
os.popen("/usr/bin/virsh shutdown %s" % hostname, "r") os.popen("/usr/bin/virsh shutdown %s" % hostname, "r")
os.popen("/usr/bin/virsh undefine %s" % hostname, "r") os.popen("/usr/bin/virsh undefine %s" % hostname, "r")
os.popen("/bin/rm -r /var/lib/qemu/images/%s/" % hostname, "r")
return True return True
@ -224,8 +223,6 @@ class QEMU:
"--dns=%s" % dns1, "--dns=%s" % dns1,
"--dns=%s" % dns2, "--dns=%s" % dns2,
] ]
print ' '.join(c) subprocess.call(' '.join(c), shell=True)
print ';;;'
print subprocess.call(' '.join(c), shell=True)
return True return True

View file

@ -1,5 +0,0 @@
#!/usr/bin/env python
from SWSCloudNode.settings import settings
print settings.get('server', '')

View file

@ -4,7 +4,7 @@ from setuptools import setup
setup( setup(
name='SWSCloudNode', name='SWSCloudNode',
version='3.1.5', version='3.1.6',
author='Vyacheslav Anzhiganov', author='Vyacheslav Anzhiganov',
author_email='vanzhiganov@ya.ru', author_email='vanzhiganov@ya.ru',
packages=[ packages=[