aptly icon indicating copy to clipboard operation
aptly copied to clipboard

Determine source snapshots of merged snapshot via API

Open fpytloun opened this issue 10 years ago • 1 comments

This information is not available via API. The only way how to determine source snapshots is to parse it's description, eg.:

source_snapshots = re.findall(r"'([\w\d-]+)'", snapshot['Description'])

But description format is not quaranteed.

fpytloun avatar Jul 08 '15 15:07 fpytloun

Yes, it's something missing right now. Internally each snapshot has UUID, and snapshot references its sources via UUIDs. So two things are missing:

  • get snapshot info by UUID
  • get source UUIDs

Internally it's a bit more complicated, as source for the snapshot could be mirror and repo as well.

smira avatar Jul 09 '15 19:07 smira