def post(self, request): logger.debug("backing up config...") with self._handle_exception(request): cbo = backup_config() return Response(ConfigBackupSerializer(cbo).data)
def main(): cbo = backup_config() print('config exported to: "%s"' % cbo.full_path())
def post(self, request): logger.debug('backing up config...') with self._handle_exception(request): cbo = backup_config() return Response(ConfigBackupSerializer(cbo).data)