mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-10 08:34:59 +08:00
19 lines
470 B
Python
19 lines
470 B
Python
import json
|
|
import requests
|
|
import os
|
|
import sys
|
|
|
|
import pdc_client
|
|
|
|
servername, token = sys.argv[-2], sys.argv[-1]
|
|
|
|
if os.path.basename(__file__) in (servername, token,):
|
|
raise ValueError("Provide a PDC server name defined in /etc/pdc.d/ and a token")
|
|
|
|
print("Connecting to PDC server %r with token %r" % (servername, token))
|
|
pdc = pdc_client.PDCClient(servername, token=token)
|
|
|
|
print("Submitting DELETE.")
|
|
del pdc['unreleasedvariants']['bootstrap']
|
|
print("Done.")
|