annotate change_vagrantfile.py @ 23:66a88f51993f
add libvirtd file for bldsv11
author |
taiki |
date |
Wed, 09 Jul 2014 12:30:12 -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
|