Module Import alias Import alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse With Call AttributeLoad NameLoad attr NameLoad body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr TryExcept body With Call NameLoad NameLoad NameStore body Return Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Import alias Assign NameStore Call AttributeLoad Str attr keyword NameLoad Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareNotEq NameLoad NameLoad UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list
N/A N/A ConfigParser N/A contextlib ceph_deploy exc _TrimIndentFile N/A object N/A __init__ N/A N/A self fp N/A N/A N/A N/A self fp fp N/A readline N/A N/A self N/A N/A N/A line N/A N/A N/A self fp readline N/A N/A N/A line lstrip N/A N/A CephConf N/A N/A ConfigParser RawConfigParser N/A optionxform N/A N/A self s N/A N/A N/A s N/A N/A s replace _ N/A s N/A N/A _ join N/A N/A s split N/A s N/A safe_get N/A N/A self section key N/A N/A N/A 
        Attempt to get a configuration value from a certain section
        in a ``cfg`` object but returning None if not found. Avoids the need
        to be doing try/except {ConfigParser Exceptions} every time.
         N/A N/A N/A N/A N/A N/A ConfigParser RawConfigParser get self section key N/A N/A N/A N/A N/A ConfigParser NoSectionError N/A ConfigParser NoOptionError N/A N/A None N/A N/A parse N/A N/A fp N/A N/A N/A cfg N/A CephConf N/A ifp N/A _TrimIndentFile fp N/A N/A N/A cfg readfp ifp N/A cfg N/A load N/A N/A args N/A N/A N/A 
    :param args: Will be used to infer the proper configuration name, or
    if args.ceph_conf is passed in, that will take precedence
     N/A path N/A N/A args ceph_conf N/A N/A {cluster}.conf format cluster N/A args cluster N/A N/A N/A f N/A file path N/A N/A N/A IOError N/A e N/A N/A N/A N/A exc ConfigError N/A %s; has `ceph-deploy new` been run in this directory? e N/A N/A N/A N/A contextlib closing f N/A N/A N/A parse f N/A load_raw N/A N/A args N/A N/A N/A 
    Read the actual file *as is* without parsing/modifiying it
    so that it can be written maintaining its same properties.

    :param args: Will be used to infer the proper configuration name
    :paran path: alternatively, use a path for any configuration file loading
     N/A path N/A N/A args ceph_conf N/A N/A {cluster}.conf format cluster N/A args cluster N/A N/A N/A N/A open path ceph_conf N/A N/A N/A N/A ceph_conf read N/A N/A N/A N/A IOError OSError N/A e N/A N/A N/A N/A exc ConfigError N/A %s; has `ceph-deploy new` been run in this directory? e N/A write_conf N/A N/A cluster conf overwrite N/A N/A N/A  write cluster configuration to /etc/ceph/{cluster}.conf  N/A os N/A path N/A N/A /etc/ceph/{cluster}.conf format cluster cluster N/A tmp N/A N/A {path}.{pid}.tmp format path path pid N/A N/A os getpid N/A N/A N/A N/A os path exists path N/A N/A N/A file path rb f N/A N/A old N/A N/A f read N/A N/A N/A old conf N/A overwrite N/A N/A N/A RuntimeError N/A config file %s exists with different content; use --overwrite-conf to overwrite path N/A N/A file tmp w f N/A N/A N/A N/A f write conf N/A N/A N/A f flush N/A N/A N/A os fsync f N/A N/A N/A os rename tmp path N/A