Ejemplo n.º 1
0
    def backup_config(self):
        """ Create a manual backup of the `config.ini` file."""

        data = config.make_backup()
        self._api_result_type = 'success' if data else 'error'

        return data
Ejemplo n.º 2
0
    def backup_config(self):
        """ Create a manual backup of the `config.ini` file."""

        data = config.make_backup()
        self._api_result_type = 'success' if data else 'error'

        return data
Ejemplo n.º 3
0
    def backup_config(self):
        """ Create a manual backup of the `config.ini` file. """

        data = config.make_backup()

        if data:
            self.result_type = 'success'
        else:
            self.result_type = 'failed'

        return data
Ejemplo n.º 4
0
    def backup_config(self):
        """ Create a manual backup of the `config.ini` file. """

        data = config.make_backup()

        if data:
            self.result_type = 'success'
        else:
            self.result_type = 'failed'

        return data