~oddbloke/cloud-init/fix-gce-az

« back to all changes in this revision

Viewing changes to cloudinit/config/cc_rightscale_userdata.py

  • Committer: Daniel Watkins
  • Date: 2015-07-22 12:06:34 UTC
  • Revision ID: daniel.watkins@canonical.com-20150722120634-wsg8rwzcaanhc2pn
Make full data source available to code that handles mirror selection.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 
59
59
    try:
60
60
        mdict = parse_qs(ud)
61
 
        if mdict or MY_HOOKNAME not in mdict:
 
61
        if not mdict or MY_HOOKNAME not in mdict:
62
62
            log.debug(("Skipping module %s, "
63
63
                       "did not find %s in parsed"
64
64
                       " raw userdata"), name, MY_HOOKNAME)