Mercurial > hg > Applications > virsh-wrapper
annotate change_vagrantfile.py @ 30:2888c7ec9013
can't define vm name is not number.
author | taiki <taiki@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 02 Sep 2014 08:10:27 -1000 |
parents | f194adc597b6 |
children |
rev | line source |
---|---|
15 | 1 #!/usr/bin/python |
2 # -*- encoding: utf-8 -*- | |
3 | |
4 import sys,os | |
5 | |
6 FILE = "Vagrantfile" | |
7 | |
8 if not os.path.exists(FILE): | |
9 print(FILE + ":file not found.") | |
10 sys.exit(1) | |
11 | |
12 f = open(FILE) | |
13 | |
14 file_tmp = [] | |
15 for line in f: | |
16 file_tmp.append(line) | |
17 | |
18 for l in file_tmp: | |
19 if 'config.vm.network :private_network' in l: | |
20 |