Skip to content

Commit

Permalink
discover: drop old code
Browse files Browse the repository at this point in the history
Signed-off-by: Kyr Shatskyy <[email protected]>
  • Loading branch information
Kyr Shatskyy committed Jan 15, 2025
1 parent 3084f7b commit 2cbc27f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions downburst/discover.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,6 @@ def get_latest_release_serial(self, release):

raise NameError('Image not found on server at ' + url)

def get_serial(self, release):
url = self.URL + '/query/released.latest.txt'
r = requests.get(url)
r.raise_for_status()
serial = None
for row in csv.DictReader(r.content.decode().strip().split("\n"),
delimiter="\t",
fieldnames=('release', 'flavour', 'stability',
'serial')):

if row['release'] == release and row['flavour'] == 'server':
return row['serial'], row['stability']
raise NameError('Image not found on server at ' + url)

def get_filename(self, arch, version, state):
if state == 'release':
state = ''
Expand Down

0 comments on commit 2cbc27f

Please sign in to comment.