*** bobh has joined #openstack-sdks | 00:08 | |
*** bobh has quit IRC | 00:14 | |
*** bobh has joined #openstack-sdks | 00:21 | |
*** salv-orlando has joined #openstack-sdks | 00:22 | |
*** markvoelker_ has quit IRC | 00:27 | |
*** markvoelker has joined #openstack-sdks | 00:28 | |
*** markvoelker has quit IRC | 00:28 | |
*** annegentle has joined #openstack-sdks | 00:33 | |
*** markvoelker has joined #openstack-sdks | 00:44 | |
*** markvoelker has quit IRC | 00:48 | |
*** yuanying has joined #openstack-sdks | 01:00 | |
*** yuanying_ has quit IRC | 01:04 | |
*** yuanying_ has joined #openstack-sdks | 01:04 | |
*** yuanying has quit IRC | 01:05 | |
*** bobh has quit IRC | 01:18 | |
*** shu-mutou-AWAY is now known as shu-mutou | 01:36 | |
*** markvoelker has joined #openstack-sdks | 01:44 | |
openstackgerrit | TingtingYu proposed openstack/python-openstacksdk master: Update mailmap for TingtingYu. https://review.openstack.org/497122 | 01:50 |
---|---|---|
*** sdague has quit IRC | 01:56 | |
*** annp has joined #openstack-sdks | 01:59 | |
*** yuanying_ has quit IRC | 02:01 | |
*** yuanying has joined #openstack-sdks | 02:04 | |
*** markvoelker has quit IRC | 02:18 | |
*** gtrxcb has joined #openstack-sdks | 02:54 | |
*** markvoelker has joined #openstack-sdks | 03:15 | |
*** markvoelker has quit IRC | 03:48 | |
*** annegentle has quit IRC | 03:48 | |
*** gouthamr has quit IRC | 03:49 | |
*** salv-orlando has quit IRC | 04:37 | |
*** markvoelker has joined #openstack-sdks | 04:45 | |
*** salv-orlando has joined #openstack-sdks | 05:09 | |
*** markvoelker has quit IRC | 05:19 | |
*** seanhandley has joined #openstack-sdks | 05:19 | |
*** markvoelker has joined #openstack-sdks | 05:24 | |
*** markvoelker_ has joined #openstack-sdks | 05:25 | |
*** markvoelker has quit IRC | 05:29 | |
*** markvoelker_ has quit IRC | 05:48 | |
*** fzdarsky|afk has joined #openstack-sdks | 05:55 | |
*** fzdarsky|afk is now known as fzdarsky | 07:13 | |
*** gtrxcb has quit IRC | 07:22 | |
*** jpich has joined #openstack-sdks | 07:39 | |
*** cdent has joined #openstack-sdks | 08:13 | |
*** openstackgerrit has quit IRC | 08:17 | |
*** cdent has quit IRC | 08:22 | |
*** ralonsoh has joined #openstack-sdks | 08:23 | |
*** e0ne has joined #openstack-sdks | 09:09 | |
*** seanhandley has quit IRC | 09:37 | |
*** sdague has joined #openstack-sdks | 09:38 | |
*** shu-mutou is now known as shu-mutou-AWAY | 09:42 | |
*** seanhandley has joined #openstack-sdks | 10:02 | |
*** ralonsoh has quit IRC | 10:03 | |
*** ralonsoh has joined #openstack-sdks | 10:04 | |
*** ebbex has quit IRC | 10:10 | |
*** jkilpatr has quit IRC | 10:41 | |
*** salv-orlando has quit IRC | 11:00 | |
*** jkilpatr has joined #openstack-sdks | 11:01 | |
*** dave-mccowan has joined #openstack-sdks | 11:18 | |
*** salv-orlando has joined #openstack-sdks | 11:36 | |
*** efried_off is now known as efried | 11:50 | |
*** ldl__ has joined #openstack-sdks | 12:02 | |
ldl__ | hi | 12:02 |
ldl__ | how are you | 12:02 |
*** jkilpatr has quit IRC | 12:03 | |
*** jkilpatr has joined #openstack-sdks | 12:09 | |
*** annp has quit IRC | 12:09 | |
*** jkilpatr has quit IRC | 12:12 | |
*** jkilpatr has joined #openstack-sdks | 12:12 | |
ldl__ | I can not install the openstacksdk in my mac: | 12:15 |
ldl__ | https://ask.openstack.org/en/question/110000/error-no-available-formula-with-the-name-openstacksdk/ | 12:15 |
ldl__ | Who can help me with this? | 12:15 |
*** jkilpatr has quit IRC | 12:17 | |
*** bobh has joined #openstack-sdks | 12:18 | |
*** bobh has quit IRC | 12:22 | |
*** sdague has quit IRC | 12:23 | |
*** annegentle has joined #openstack-sdks | 12:24 | |
*** jkilpatr has joined #openstack-sdks | 12:30 | |
*** sdague has joined #openstack-sdks | 12:37 | |
*** hidekazu has joined #openstack-sdks | 12:44 | |
*** ldl__ has quit IRC | 12:48 | |
*** salv-orlando has quit IRC | 12:54 | |
*** bobh has joined #openstack-sdks | 12:56 | |
*** dave-mccowan has quit IRC | 12:57 | |
*** annegentle has quit IRC | 13:06 | |
edleafe | elmiko: I won't be around for today's API-SIG meeting. And cdent is in the air for much of today, so I don't know if he'll make it either. | 13:06 |
*** dave-mcc_ has joined #openstack-sdks | 13:09 | |
*** annegentle has joined #openstack-sdks | 13:16 | |
*** gouthamr has joined #openstack-sdks | 13:17 | |
elmiko | edleafe: ack, i'll show up and see if we get any takers | 13:30 |
*** salv-orlando has joined #openstack-sdks | 13:33 | |
*** rajathagasthya has joined #openstack-sdks | 13:48 | |
*** cleong has joined #openstack-sdks | 13:57 | |
*** marst has joined #openstack-sdks | 14:08 | |
*** annegentle has quit IRC | 14:30 | |
*** annegentle has joined #openstack-sdks | 14:51 | |
*** ldl___ has joined #openstack-sdks | 15:01 | |
*** hoangcx has quit IRC | 15:03 | |
*** hoangcx has joined #openstack-sdks | 15:04 | |
*** annegentle has quit IRC | 15:08 | |
*** salv-orlando has quit IRC | 15:08 | |
*** salv-orlando has joined #openstack-sdks | 15:21 | |
*** annegentle has joined #openstack-sdks | 15:21 | |
*** ralonsoh has quit IRC | 15:23 | |
*** jeremyfreudberg has joined #openstack-sdks | 15:29 | |
*** jeremyfreudberg has left #openstack-sdks | 15:29 | |
*** salv-orlando has quit IRC | 15:35 | |
*** iwonka has joined #openstack-sdks | 15:44 | |
*** ldl___ has quit IRC | 15:46 | |
*** e0ne has quit IRC | 15:47 | |
iwonka | hi guys, i'm an outreachy intern in sahara and as a part of my internship i've added new commands to openstack cli. the commands export some stuff to json, and there are doubts among sahara people whether the command that does it should print to stdout or take an argument with a name to write. thus question to you: what is the better option to do it? | 15:48 |
*** jeremyfreudberg has joined #openstack-sdks | 15:49 | |
jeremyfreudberg | to build on what iwonka said, we have some API in sahara which returns some json, and that json doesn't just represent the result, the json **is** the result that the user wants to keep. therefore when creating an OSC command to use this API we don't use any standard osc formatter to represent the output. so we are wondering if there are any best practices regarding write to stdout, write to file, etc, in OSC | 16:06 |
*** jpich has quit IRC | 16:17 | |
elmiko | good question, maybe dtroyer has a quick answer ^^ | 16:18 |
elmiko | i mean, you can always redirect stdout =) | 16:18 |
elmiko | but having a --out option or something is nice also | 16:18 |
jeremyfreudberg | elmiko, sounds a lot like what we had been going back and forth about in the sahara channel | 16:19 |
jeremyfreudberg | if dtroyer could weigh in that would be nice, we know it's gonna break osc traditions no matter what we pick, so we just wanna make sure we do it right | 16:19 |
elmiko | +1 | 16:20 |
dtroyer | osc does have a -f json output format so we already have that, written to stdout. | 16:20 |
dtroyer | In this case, though, it doesn't sound like any other output formats make sense | 16:21 |
dtroyer | if the user is expecting JSON always, jsut write it to stdout. We do have a couple of comamnds that write output to files, like downloading objects or images | 16:21 |
dtroyer | image save —file <filename> | 16:22 |
dtroyer | (oops, there's an image nmae/id on there too) | 16:22 |
dtroyer | object save [—file <filename>] <object-name-or-id> | 16:23 |
jeremyfreudberg | ah, dtroyer, very good examples | 16:24 |
dtroyer | if you really want to have an option to specify a filename, I'd do it that way. OSC users will be used to redirecting stdout for a lot of things though, including those save sommands if that's where they want the images to go | 16:24 |
dtroyer | so to me, the inconsistency is in always outputting JSON, which isn't an issue if that is really the only thing the user wants to get out | 16:24 |
dtroyer | make sure including '-f json' is handled without error though | 16:25 |
jeremyfreudberg | dtroyer, if take_action returns None, that's ok right? | 16:26 |
dtroyer | yes, although it may depend on what kind of command class you inherit from to begin with | 16:27 |
jeremyfreudberg | osc_lib.command.command.Command | 16:28 |
dtroyer | there no return is expcted | 16:29 |
jeremyfreudberg | cool | 16:30 |
jeremyfreudberg | thanks for your help, i'll play around with it some... i'm leaning towards doing it like `openstack image save` with optional file that defaults to stdout | 16:30 |
dtroyer | what is the command verb? | 16:31 |
jeremyfreudberg | export | 16:32 |
dtroyer | ok, I think that makes sense. I wanted to make sure these semantics were not going to be surprising to users | 16:33 |
jeremyfreudberg | cool cool | 16:34 |
jeremyfreudberg | need to go afk now, if you have any sudden change of heart feel free to jump on the sahara channel later | 16:34 |
jeremyfreudberg | thanks a ton | 16:34 |
*** jeremyfreudberg has quit IRC | 16:34 | |
*** salv-orlando has joined #openstack-sdks | 16:36 | |
*** salv-orlando has quit IRC | 16:41 | |
*** annegentle has quit IRC | 16:55 | |
*** dave-mcc_ is now known as dave-mccowan | 17:01 | |
*** fzdarsky is now known as fzdarsky|afk | 17:04 | |
*** jkilpatr has quit IRC | 17:16 | |
*** jkilpatr has joined #openstack-sdks | 17:29 | |
*** salv-orlando has joined #openstack-sdks | 17:37 | |
*** salv-orlando has quit IRC | 17:41 | |
*** dave-mccowan has quit IRC | 18:07 | |
*** iwonka has quit IRC | 18:08 | |
*** dave-mccowan has joined #openstack-sdks | 18:14 | |
*** iwonka has joined #openstack-sdks | 18:14 | |
*** iwonka has quit IRC | 18:25 | |
*** salv-orlando has joined #openstack-sdks | 18:38 | |
*** salv-orlando has quit IRC | 18:43 | |
*** annegentle has joined #openstack-sdks | 18:51 | |
*** jkilpatr has quit IRC | 18:57 | |
*** jkilpatr has joined #openstack-sdks | 18:57 | |
*** salv-orlando has joined #openstack-sdks | 19:39 | |
*** jkilpatr has quit IRC | 19:40 | |
*** rajathagasthya has quit IRC | 19:43 | |
*** salv-orlando has quit IRC | 19:43 | |
*** e0ne has joined #openstack-sdks | 19:53 | |
*** annegentle has quit IRC | 19:55 | |
*** jkilpatr has joined #openstack-sdks | 20:03 | |
*** rajathagasthya has joined #openstack-sdks | 20:09 | |
*** annegentle has joined #openstack-sdks | 20:32 | |
*** e0ne has quit IRC | 20:36 | |
*** salv-orlando has joined #openstack-sdks | 20:39 | |
*** salv-orlando has quit IRC | 20:45 | |
*** cleong has quit IRC | 20:45 | |
*** annegentle has quit IRC | 20:46 | |
*** annegentle has joined #openstack-sdks | 20:52 | |
*** annegentle has quit IRC | 21:07 | |
*** dave-mccowan has quit IRC | 21:20 | |
*** annegentle has joined #openstack-sdks | 21:34 | |
*** salv-orlando has joined #openstack-sdks | 21:40 | |
*** salv-orlando has quit IRC | 21:45 | |
*** bobh has quit IRC | 21:59 | |
*** gouthamr has quit IRC | 22:08 | |
*** annegentle has quit IRC | 22:27 | |
*** salv-orlando has joined #openstack-sdks | 22:29 | |
*** annegentle has joined #openstack-sdks | 22:35 | |
*** jgriffith has quit IRC | 22:43 | |
*** jgriffith has joined #openstack-sdks | 22:44 | |
*** salv-orlando has quit IRC | 23:01 | |
*** salv-orlando has joined #openstack-sdks | 23:02 | |
*** annegentle has quit IRC | 23:03 | |
*** salv-orlando has quit IRC | 23:06 | |
*** salv-orlando has joined #openstack-sdks | 23:06 | |
*** rajathagasthya has quit IRC | 23:18 | |
*** salv-orlando has quit IRC | 23:23 | |
*** salv-orlando has joined #openstack-sdks | 23:23 | |
*** salv-orlando has quit IRC | 23:28 | |
*** salv-orlando has joined #openstack-sdks | 23:47 | |
*** sdague has quit IRC | 23:54 | |
*** marst has quit IRC | 23:57 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!