예제 #1
0
    def get_config(self, key):
        """
        Retrieve the value of a persistent configuration setting

        :param key: str
        :return: str
        """
        return ceph_state.get_config(self._handle, key)
예제 #2
0
    def get_config(self, key, default=None):
        """
        Retrieve the value of a persistent configuration setting

        :param key: str
        :return: str
        """
        r = ceph_state.get_config(self._handle, key)
        if r is None:
            return default
        else:
            return r
예제 #3
0
    def get_config(self, key, default=None):
        """
        Retrieve the value of a persistent configuration setting

        :param key: str
        :return: str
        """
        r = ceph_state.get_config(self._handle, key)
        if r is None:
            return default
        else:
            return r