Skip to content

Commit

Permalink
Ok, I am a moron, I know, I got chmod working, and yes - I need to ge…
Browse files Browse the repository at this point in the history
…t more

comforatble with hex.
  • Loading branch information
thatch45 committed Dec 1, 2010
1 parent dcc80db commit 1e47bc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions varch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ def make_vm(self):
print('############################################################################')
genconf = varch.genconf.GenConf(self.opts)
if self.opts['kvm_conf']:
print('Generating kvm startup script')
genconf.gen_kvm()
if self.opts['libvirt_conf']:
print('Generating libvirt configuration')
genconf.gen_libvirt()

except varch.aif.AIFException as e:
Expand Down
3 changes: 1 addition & 2 deletions varch/genconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
'''

import os
import stat
import uuid
import random

Expand Down Expand Up @@ -46,7 +45,7 @@ def gen_kvm(self):
+ 'boot=on -m 512\n',
]
open(fn_, 'w+').writelines(lines)
os.chmod(fn_, 0755)
os.chmod(fn_, 493)

def gen_libvirt(self):
'''
Expand Down

0 comments on commit 1e47bc0

Please sign in to comment.