=== beisner- is now known as beisner | ||
stokachu | is it possible to pull bundle meta/files from a specific revision? | 13:54 |
---|---|---|
stokachu | from the charmstore api | 13:54 |
frankban | stokachu: what URL are you using? | 14:29 |
stokachu | frankban: was using theblues library | 14:29 |
stokachu | tried with cs.bundle('data-analytics-with-sql-like-6') | 14:30 |
frankban | stokachu: 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 |
stokachu | yea i just wanted to know if i can use a bundle revision with the library | 14:32 |
rick_h_ | frankban: I think the thing is the library could use some improvement to check "exists" | 14:32 |
stokachu | like you can with the charm | 14:32 |
stokachu | for now im using archive_url routine to gives me the proper url | 14:32 |
stokachu | but like rick said it doesn't actually check the charmstore to make sure it's a valid url | 14:32 |
frankban | let me take a look at the code | 14:33 |
jrwren_ | a bundle only has 2 files: the bundle yaml, and README | 14:33 |
stokachu | https://github.com/Ubuntu-Solutions-Engineering/conjure/blob/master/conjurelib/charm.py | 14:34 |
stokachu | to give you an idea of how im using it | 14:34 |
stokachu | the bundle can come in the form of just the name of the bundle or a bundle+rev | 14:34 |
frankban | stokachu: so you want to use met/manifest to get the file list before | 14:35 |
frankban | https://api.jujucharms.com/charmstore/v5/bundle/data-analytics-with-sql-like-6/meta/manifest | 14:36 |
frankban | ??? | 14:36 |
stokachu | well i was hoping to just make a single call to the bundle+rev to pull in the default includes with the library | 14:36 |
frankban | stokachu: I am not sure I understood your goal and the problem | 14:37 |
stokachu | oh it works now | 14:39 |
stokachu | maybe i was entering in an unknown revision | 14:39 |
fabrice | stokachu: 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 want | 14:39 |
stokachu | ah ok | 14:39 |
frankban | cs.files(self, entity_id, filename='bundle.yaml', read_file=True)? | 14:40 |
stokachu | fabrice, frankban that clears it up | 14:40 |
stokachu | frankban: that's exactly what i was looking for | 14:41 |
fabrice | frankban is always trhe best ! | 14:41 |
stokachu | :D | 14:41 |
frankban | fabrice: ok, you'll have a beer in rome | 14:42 |
fabrice | just one ? | 14:42 |
frankban | ONE! | 14:43 |
frankban | and then wine | 14: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!