Revision ca1de37b snf-deploy/snfdeploy/lib.py

b/snf-deploy/snfdeploy/lib.py
1 1
#!/usr/bin/python
2 2

  
3
import json
4 3
import time
5 4
import ipaddr
6 5
import os
......
10 9
import re
11 10
import random
12 11
import subprocess
13
import shutil
14 12
import imp
15
import tempfile
16
from snfdeploy import massedit
17 13

  
18 14

  
19 15
HEADER = '\033[95m'
......
85 81

  
86 82
    def update_packages(self, os):
87 83
        for section in self.conf.files[os]:
88
          self.evaluate(os, section)
84
            self.evaluate(os, section)
89 85

  
90 86
    def evaluate(self, filename, section):
91 87
        for k, v in self.conf.get_section(filename, section):
......
152 148
    def get_ganeti(self, cluster_name):
153 149
        self.files["ganeti"] = [cluster_name]
154 150

  
155

  
156 151
    def __init__(self, args):
157 152
        self.confdir = args.confdir
158 153
        self.get_ganeti(args.cluster_name)
......
220 215
        pass
221 216

  
222 217

  
223
def randomMAC():
218
def random_mac():
224 219
    mac = [0x52, 0x54, 0x56,
225 220
           random.randint(0x00, 0xff),
226 221
           random.randint(0x00, 0xff),

Also available in: Unified diff