From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 893BF1FF15E for ; Fri, 18 Oct 2024 10:42:32 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 992DC1DF4A; Fri, 18 Oct 2024 10:43:01 +0200 (CEST) From: Christian Ebner To: pbs-devel@lists.proxmox.com Date: Fri, 18 Oct 2024 10:42:24 +0200 Message-Id: <20241018084242.144010-14-c.ebner@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241018084242.144010-1-c.ebner@proxmox.com> References: <20241018084242.144010-1-c.ebner@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.027 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH v5 proxmox-backup 13/31] api: admin: avoid duplicate name for list sync jobs api method X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" YGxpc3Rfc3luY19qb2JzYCBleGlzdHMgYXMgYXBpIG1ldGhvZCBpbiBgYXBpMjo6YWRtaW46OnN5 bmNgIGFuZApgYXBpMjo6Y29uZmlnOjpzeW5jYC4KClJlbmFtZSB0aGUgYWRtaW4gYXBpIGVuZHBv aW50IG1ldGhvZCB0byBgbGlzdF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ZmljYXRpb25fam9icywKKyAg ICBwcnVuZTo6bGlzdF9wcnVuZV9qb2JzLCBzeW5jOjpsaXN0X2NvbmZpZ19zeW5jX2pvYnMsIHZl cmlmeTo6bGlzdF92ZXJpZmljYXRpb25fam9icywKIH07CiB1c2UgY3JhdGU6OmFwaTI6OmNvbmZp Zzo6cHJ1bmU6OntkZWxldGVfcHJ1bmVfam9iLCBkb19jcmVhdGVfcHJ1bmVfam9ifTsKIHVzZSBj cmF0ZTo6YXBpMjo6Y29uZmlnOjpzeW5jOjpkZWxldGVfc3luY19qb2I7CkBAIC01MDAsNyArNTAw LDkgQEAgcHViIGFzeW5jIGZuIGRlbGV0ZV9kYXRhc3RvcmUoCiAgICAgICAgICAgICBkZWxldGVf dmVyaWZpY2F0aW9uX2pvYihqb2IuY29uZmlnLmlkLCBOb25lLCBycGNlbnYpPwogICAgICAgICB9 CiAgICAgICAgIGZvciBkaXJlY3Rpb24gaW4gW1N5bmNEaXJlY3Rpb246OlB1bGwsIFN5bmNEaXJl Y3Rpb246OlB1c2hdIHsKLSAgICAgICAgICAgIGZvciBqb2IgaW4gbGlzdF9zeW5jX2pvYnMoU29t ZShuYW1lLmNsb25lKCkpLCBTb21lKGRpcmVjdGlvbiksIFZhbHVlOjpOdWxsLCBycGNlbnYpPyB7 CisgICAgICAgICAgICBmb3Igam9iIGluCisgICAgICAgICAgICAgICAgbGlzdF9jb25maWdfc3lu Y19qb2JzKFNvbWUobmFtZS5jbG9uZSgpKSwgU29tZShkaXJlY3Rpb24pLCBWYWx1ZTo6TnVsbCwg cnBjZW52KT8KKyAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICBkZWxldGVfc3luY19qb2Io am9iLmNvbmZpZy5pZCwgU29tZShkaXJlY3Rpb24pLCBOb25lLCBycGNlbnYpPwogICAgICAgICAg ICAgfQogICAgICAgICB9CmRpZmYgLS1naXQgYS9zcmMvYXBpMi9jb25maWcvbm90aWZpY2F0aW9u cy9tb2QucnMgYi9zcmMvYXBp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