/usr/lib/python2.6/site-packages/cloudinit/config
Edit: /usr/lib/python2.6/site-packages/cloudinit/config/cc_landscape.pyo (2476B)
Ñò
¿;Sc
@ s¶ d d k Z d d k l Z d d k l Z d d k l Z d d k l Z d d k l Z e Z d Z
d Z d g Z h h d
d 6d d
6d d 6d d 6d 6Z
d „ Z d „ Z d S( iÿÿÿÿN( t StringIO( t ConfigObj( t
type_utils( t util( t PER_INSTANCEs /etc/landscape/client.confs /etc/default/landscape-clientt ubuntut infot log_levels. https://landscape.canonical.com/message-systemt urls# http://landscape.canonical.com/pingt ping_urls /var/lib/landscape/clientt data_patht clientc C sô | i d h ƒ } t | t ƒ p t d t i | ƒ ƒ ‚ n | p d S| i i d ƒ t t | g } t
| ƒ } t ƒ } | i | ƒ t
i t i i t ƒ ƒ t
i t | i ƒ ƒ | i d t ƒ t
i t d ƒ t
i d d d g ƒ d S(
s¬
Basically turn a top level 'landscape' entry with a 'client' dict
and render it to ConfigObj format under '[client]' section in
/etc/landscape/client.conf
t landscapesM 'landscape' key existed in config, but not a dictionary type, is a %s insteadNs landscape-clients! Wrote landscape config file to %ss RUN=1
t servicet restart( s landscape-client( t gett
isinstancet dictt RuntimeErrorR t obj_namet distrot install_packagest LSC_BUILTIN_CFGt LSC_CLIENT_CFG_FILEt merge_togetherR t writeR t
ensure_dirt ost patht dirnamet
write_filet getvaluet debugt LS_DEFAULT_FILEt subp( t _namet cfgt cloudt logt _argst ls_cloudcfgt
merge_datat mergedt contents( ( sA /usr/lib/python2.6/site-packages/cloudinit/config/cc_landscape.pyt handle2 s$
c C sc t h ƒ } xP | D]H } | p q n t | t ƒ o | i | ƒ q | i t | ƒ ƒ q W| S( su
merge together ConfigObj objects or things that ConfigObj() will take in
later entries override earlier
( R R t merge( t objsR$ t obj( ( sA /usr/lib/python2.6/site-packages/cloudinit/config/cc_landscape.pyR V s ( R R t configobjR t cloudinitR R t cloudinit.settingsR t frequencyR R! t distrosR R, R ( ( ( sA /usr/lib/python2.6/site-packages/cloudinit/config/cc_landscape.pyt
s" $