/srv/irclogs.ubuntu.com/2016/01/29/#juju-gui.txt

=== beisner- is now known as beisner
stokachuis it possible to pull bundle meta/files from a specific revision?13:54
stokachufrom the charmstore api13:54
frankbanstokachu: what URL are you using?14:29
stokachufrankban: was using theblues library14:29
stokachutried with cs.bundle('data-analytics-with-sql-like-6')14:30
frankbanstokachu: what's the meta/files endpoint?14:31
rick_h_frankban: I showed him the manual calls to the api to get the content 14:31
stokachuyea i just wanted to know if i can use a bundle revision with the library14:32
rick_h_frankban: I think the thing is the library could use some improvement to check "exists" 14:32
stokachulike you can with the charm14:32
stokachufor now im using archive_url routine to gives me the proper url14:32
stokachubut like rick said it doesn't actually check the charmstore to make sure it's a valid url14:32
frankbanlet me take a look at the code14:33
jrwren_a bundle only has 2 files: the bundle yaml,  and README14:33
stokachuhttps://github.com/Ubuntu-Solutions-Engineering/conjure/blob/master/conjurelib/charm.py14:34
stokachuto give you an idea of how im using it14:34
stokachuthe bundle can come in the form of just the name of the bundle or a bundle+rev14:34
frankbanstokachu: so you want to use met/manifest to get the file list before14:35
frankbanhttps://api.jujucharms.com/charmstore/v5/bundle/data-analytics-with-sql-like-6/meta/manifest14:36
frankban???14:36
stokachuwell i was hoping to just make a single call to the bundle+rev to pull in the default includes with the library14:36
frankbanstokachu: I am not sure I understood your goal and the problem14:37
stokachuoh it works now14:39
stokachumaybe i was entering in an unknown revision14:39
fabricestokachu: when you ask for an entity we put the default includes in here https://github.com/juju/theblues/blob/develop/theblues/charmstore.py#L86 but if you want to go through the meta endpoint with that one https://github.com/juju/theblues/blob/develop/theblues/charmstore.py#L73 you will have to provide the includes you want14:39
stokachuah ok 14:39
frankbancs.files(self, entity_id, filename='bundle.yaml', read_file=True)?14:40
stokachufabrice, frankban that clears it up14:40
stokachufrankban: that's exactly what i was looking for14:41
fabricefrankban is always trhe best !14:41
stokachu:D14:41
frankbanfabrice: ok, you'll have a beer in rome14:42
fabricejust one ?14:42
frankbanONE!14:43
frankbanand then wine14:43
=== marcoc|airplane is now known as marcoceppi
=== urulama is now known as urulama__
=== jrwren_ is now known as jrwren

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!