Comment 5 for bug 1100491

Revision history for this message
Adam Gandelman (gandelman-a) wrote : Re: cloud-init 0.6.3-0ubuntu1.3 failing to process juju-generated userdata

Removing the first parameter in the call to add_sources() seems to fix the issue:

=== modified file 'CloudConfig/cc_apt_update_upgrade.py'
--- CloudConfig/cc_apt_update_upgrade.py 2013-01-16 22:05:40 +0000
+++ CloudConfig/cc_apt_update_upgrade.py 2013-01-16 22:10:42 +0000
@@ -72,7 +72,7 @@
         params = mirrors
         params['RELEASE'] = release
         params['MIRROR'] = mirror
- errors = add_sources(cloud, cfg['apt_sources'], params)
+ errors = add_sources(cfg['apt_sources'], params)
         for e in errors:
             log.warn("Source Error: %s\n" % ':'.join(e))

http://paste.ubuntu.com/1539261/