~ltrager/maas-images/static_yum_mirror

« back to all changes in this revision

Viewing changes to curtin/centos7/curtin-hooks.py

  • Committer: Lee Trager
  • Date: 2016-05-11 18:47:46 UTC
  • Revision ID: lee.trager@canonical.com-20160511184746-bank457vtkkxy6hg
Fix PEP8 errors in CentOS curtin hooks

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
import codecs
10
10
import os
11
 
import re
12
11
import sys
13
12
import shutil
14
13
 
15
 
sys.path.append('/curtin')
16
14
from curtin import (
17
15
    block,
18
 
    net,
19
16
    util,
20
17
    )
21
18
 
 
19
 
22
20
"""
23
21
CentOS 7
24
22
 
106
104
    for param in params:
107
105
        remove = False
108
106
        for strip in strip_params:
109
 
             if param.startswith(strip):
110
 
                 remove = True
111
 
                 break
 
107
            if param.startswith(strip):
 
108
                remove = True
 
109
                break
112
110
        if remove is False:
113
111
            new_params.append(param)
114
112
    return new_params