~smoser/ubuntu/quantal/cloud-init/sru

« back to all changes in this revision

Viewing changes to cloudinit/CloudConfig/__init__.py

  • Committer: Scott Moser
  • Date: 2012-01-12 16:33:53 UTC
  • mto: This revision was merged to the branch mainline in revision 141.
  • Revision ID: smoser@ubuntu.com-20120112163353-nip749m6ytls8sva
Tags: upstream-0.6.3~bzr502
ImportĀ upstreamĀ versionĀ 0.6.3~bzr502

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    cfgfile = None
34
34
    cfg = None
35
35
 
36
 
    def __init__(self,cfgfile, cloud=None, ds_deps=[]):
 
36
    def __init__(self,cfgfile, cloud=None, ds_deps=None):
37
37
        if cloud == None:
38
38
            self.cloud = cloudinit.CloudInit(ds_deps)
39
39
            self.cloud.get_data_source()
233
233
        raise
234
234
 
235
235
# apt_get top level command (install, update...), and args to pass it
236
 
def apt_get(tlc,args=[]):
 
236
def apt_get(tlc,args=None):
 
237
    if args is None:
 
238
        args = []
237
239
    e=os.environ.copy()
238
240
    e['DEBIAN_FRONTEND']='noninteractive'
239
241
    cmd=[ 'apt-get',