ó 'KXc@sDddlZddlmZejeƒZd„Zdd„Z dS(i’’’’N(tlogcCst|ƒtj|S(N(t __import__tsystmodules(t module_name((s?/opt/freeware/lib/python2.7/site-packages/cloudinit/importer.pyt import_modules c CsXg}|sg}ng}x\|D]T}g}|rM|j|jdƒƒn|j|ƒdj|ƒ}|j|ƒq"Wtjd||ƒx®|D]¦}d}yt|ƒ}Wn&tk rŲ} tjd|| ƒnX|såq”nd} x*|D]"} t || ƒrņ| d7} qņqņW| t |ƒkr”|j|ƒq”q”Wtjd|||ƒ|S(Nt.s.Looking for modules %s that have attributes %ss-Failed at attempted import of '%s' due to: %siis!Found %s with attributes %s in %s( textendtsplittappendtjointLOGtdebugtNoneRt ImportErrorthasattrtlen( t base_namet search_pathstrequired_attrst found_placest real_pathstpatht real_patht full_pathtmodtet found_attrstattr((s?/opt/freeware/lib/python2.7/site-packages/cloudinit/importer.pyt find_module#s>          ( Rt cloudinitRtloggingt getLoggert__name__R RR R(((s?/opt/freeware/lib/python2.7/site-packages/cloudinit/importer.pyts