This file is indexed.

/usr/lib/python2.7/dist-packages/psphere/config.py is in python-psphere 0.5.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import os
import yaml
import logging

logger = logging.getLogger(__name__)
config_path = os.path.expanduser('~/.psphere/config.yaml')
try:
    config_file = open(config_path, "r")
    PSPHERE_CONFIG = yaml.load(config_file)
    config_file.close()
except IOError:
    logger.warning("Configuration file %s could not be opened, perhaps you"
                   " haven't created one?" % config_path)
    PSPHERE_CONFIG = {"general": {}, "logging": {}}
    pass


def _config_value(section, name, default=None):
    file_value = None
    if name in PSPHERE_CONFIG[section]:
        file_value = PSPHERE_CONFIG[section][name]

    if file_value:
        return file_value
    else:
        return default