fix
This commit is contained in:
parent
856432c58e
commit
69ba93c824
3 changed files with 2 additions and 10 deletions
|
@ -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
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
from SWSCloudNode.settings import settings
|
|
||||||
|
|
||||||
print settings.get('server', '')
|
|
2
setup.py
2
setup.py
|
@ -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=[
|
||||||
|
|
Loading…
Add table
Reference in a new issue