~ltrager/maas-images/static_yum_mirror

« back to all changes in this revision

Viewing changes to curtin/centos6/finalize.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:
10
10
import os
11
11
import sys
12
12
 
13
 
sys.path.append('/curtin')
14
13
from curtin import util
15
14
 
16
15
 
55
54
                elif key == 'oauth_consumer_key':
56
55
                    params['consumer_key'] = value
57
56
    return params
58
 
                 
 
57
 
59
58
 
60
59
def get_maas_debconf_selections(config):
61
60
    """Gets the debconf selections from the curtin config."""
85
84
        print("Config was not provided in the environment.")
86
85
        sys.exit(1)
87
86
    config = load_config(config_f)
88
 
    
 
87
 
89
88
    debconf = get_maas_debconf_selections(config)
90
89
    if debconf is None:
91
90
        print("Failed to get the debconf_selections.")