Module Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword Str keyword Str Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr orelse Raise decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr keyword NameLoad attr For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str Dict Str Str AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A posixpath oslo_config cfg oslo_log log oslo_logging six.moves.urllib error six.moves.urllib request cloudbaseinit.metadata.services base cloudbaseinit.utils network N/A opts N/A N/A N/A cfg StrOpt ec2_metadata_base_url default http://169.254.169.254/ help The base URL where the service looks for metadata N/A N/A cfg BoolOpt ec2_add_metadata_private_ip_route default True help Add a route for the metadata ip address to the gateway N/A CONF N/A cfg CONF N/A N/A N/A CONF register_opts opts N/A LOG N/A N/A oslo_logging getLogger __name__ EC2Service N/A N/A base BaseMetadataService N/A N/A _metadata_version 2009-04-04 __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super EC2Service self __init__ N/A N/A self _enable_retry True N/A load N/A N/A self N/A N/A N/A N/A N/A N/A super EC2Service self load N/A N/A CONF ec2_add_metadata_private_ip_route N/A N/A N/A N/A network check_metadata_ip_route N/A CONF ec2_metadata_base_url N/A N/A N/A N/A N/A self get_host_name N/A True N/A N/A N/A Exception N/A ex N/A N/A N/A N/A LOG exception ex N/A N/A N/A LOG debug N/A Metadata not found at URL '%s' N/A CONF ec2_metadata_base_url N/A False N/A _get_response N/A N/A self req N/A N/A N/A N/A N/A N/A N/A request urlopen req N/A N/A N/A N/A error HTTPError N/A ex N/A N/A N/A N/A ex code 404 N/A N/A N/A N/A base NotExistingMetadataException N/A N/A N/A _get_data N/A N/A self path N/A N/A N/A norm_path N/A N/A posixpath join N/A CONF ec2_metadata_base_url path N/A N/A N/A LOG debug Getting metadata from: %(norm_path)s N/A norm_path norm_path N/A req N/A N/A request Request norm_path N/A response N/A N/A self _get_response req N/A N/A N/A response read N/A get_host_name N/A N/A self N/A N/A N/A N/A N/A self _get_cache_data N/A %s/meta-data/local-hostname N/A self _metadata_version decode True N/A get_instance_id N/A N/A self N/A N/A N/A N/A N/A self _get_cache_data N/A %s/meta-data/instance-id N/A self _metadata_version decode True N/A get_public_keys N/A N/A self N/A N/A N/A ssh_keys N/A N/A keys_info N/A N/A N/A N/A self _get_cache_data N/A %s/meta-data/public-keys N/A self _metadata_version decode True splitlines N/A key_info keys_info N/A N/A N/A idx key_name N/A N/A key_info split = N/A ssh_key N/A N/A self _get_cache_data N/A %(version)s/meta-data/public-keys/%(idx)s/openssh-key N/A version idx N/A self _metadata_version idx decode True N/A N/A N/A ssh_keys append N/A N/A ssh_key strip N/A ssh_keys N/A N/A