Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
awscli
/
customizations
/
emr
/
File Content:
configutils.pyc
� =��Xc @ s� d d l Z d d l Z d d l m Z d d l m Z d d l m Z e j e � Z d � Z d � Z d � Z d � Z d � Z d � Z d e f d � � YZ d S( i����N( t ConfigFileWriter( t EC2_ROLE_NAME( t EMR_ROLE_NAMEc C s | j � j d i � S( Nt emr( t get_scoped_configt get( t session( ( sE /tmp/pip-build-uEGWVr/awscli/awscli/customizations/emr/configutils.pyt get_configs s c C s# | j d � } | d k r d S| S( Nt profilet default( t get_config_variablet None( R t profile_name( ( sE /tmp/pip-build-uEGWVr/awscli/awscli/customizations/emr/configutils.pyt get_current_profile_name s c C s t | d � S( Nt .( t _get_profile_str( R ( ( sE /tmp/pip-build-uEGWVr/awscli/awscli/customizations/emr/configutils.pyt get_current_profile_var_name s c C s- | j d � } | d k r d Sd | | f S( NR R s profile%c%s( R R ( R t separatorR ( ( sE /tmp/pip-build-uEGWVr/awscli/awscli/customizations/emr/configutils.pyR $ s c C s, t | � } d | k s$ d | k r( t St S( Nt instance_profilet service_role( R t Truet False( R t parsed_configs( ( sE /tmp/pip-build-uEGWVr/awscli/awscli/customizations/emr/configutils.pyt is_any_role_configured* s c C sY t | � r t j d � n9 t | � } | j d t � | j d t � t j d � d S( NsJ At least one of the roles is already associated with your current profile R R s2 Associated default roles with your current profile( R t LOGt debugt ConfigWritert update_configR R ( R t config_writer( ( sE /tmp/pip-build-uEGWVr/awscli/awscli/customizations/emr/configutils.pyt update_roles1 s R c B s e Z d � Z d � Z RS( c C s+ | | _ t | d � | _ t � | _ d S( Nt ( R R t sectionR t config_file_writer( t selfR ( ( sE /tmp/pip-build-uEGWVr/awscli/awscli/customizations/emr/configutils.pyt __init__>