3 \me@s2dZddlmZddlmZd eedddZdS) z6Common cloud-init devel commandline utility functions.)Paths)Init)fetch_existing_datasourcereturncCs(tgd}|r|j|d|j|jS)aReturn a Paths object based on the system configuration on disk. :param fetch_existing_datasource: String one of check or trust. Whether to load the pickled datasource before returning Paths. This is necessary when using instance paths via Paths.get_ipath method which are only known from the instance-id metadata in the detected datasource. :raises: DataSourceNotFoundException when no datasource cache exists. )Zds_deps)Zexisting)rZfetchZread_cfgpaths)rZinitr/usr/lib/python3.6/__init__.pyread_cfg_paths s  r N)r)__doc__Zcloudinit.helpersrZcloudinit.stagesrstrr rrrr s