PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  oB]c@sTdZddlmZddlmZddlZddgZdZdZdS( s9 SSH Import Id ------------- **Summary:** import ssh id This module imports ssh keys from either a public keyserver, usually launchpad or github using ``ssh-import-id``. Keys are referenced by the username they are associated with on the keyserver. The keyserver can be specified by prepending either ``lp:`` for launchpad or ``gh:`` for github to the username. **Internal name:** ``cc_ssh_import_id`` **Module frequency:** per instance **Supported distros:** ubuntu, debian **Config keys**:: ssh_import_id: - user - gh:user - lp:user i(tug_util(tutilNtubuntutdebiancCst|dkrU|d}g}t|dkrA|d}nt|||dStj||j\}}g} x/|jD]!\}} g} | drtj|dg} n5y| d} Wn$tk r|j d|qnXy2tj | } g| D]} t | ^q} Wn$tk rD|j d|qnXt| sWqnyt| ||Wqtk r} tj |d|| | j | qXqWt| r| dndS(Niitdefaultt ssh_import_ids+User %s is not configured for ssh_import_ids5User %s is not correctly configured for ssh_import_idsssh-import-id failed for: %s %s(tlentimport_ssh_idsRtnormalize_users_groupstdistrotitemsRtget_cfg_option_listt Exceptiontdebugt uniq_mergetstrtlogexctappend(t_nametcfgtcloudtlogtargstusertidstuserst_groupstelisttuser_cfgt import_idstitexc((sE/usr/lib/python2.7/site-packages/cloudinit/config/cc_ssh_import_id.pythandle)sF    #    cCs|o |s#|jd||dSytj|Wntk rO}|nXdd|dg|}|jd|ytj|dtWn/tjk r}tj|d||nXdS(Ns(empty user(%s) or ids(%s). not importingtsudos-Hus ssh-import-idsImporting ssh ids for user %s.tcaptures*Failed to run command to import %s ssh ids( R tpwdtgetpwnamtKeyErrorRtsubptFalsetProcessExecutionErrorR(RRRRtcmd((sE/usr/lib/python2.7/site-packages/cloudinit/config/cc_ssh_import_id.pyRYs  ( t__doc__tcloudinit.distrosRt cloudinitRR#tdistrosR R(((sE/usr/lib/python2.7/site-packages/cloudinit/config/cc_ssh_import_id.pyts    0