*** hieulq has quit IRC | 00:08 | |
openstackgerrit | Merged openstack/python-openstackclient: Standardize logger usage in volume https://review.openstack.org/326257 | 00:09 |
---|---|---|
*** shu-mutou has joined #openstack-sdks | 00:15 | |
openstackgerrit | Merged openstack/python-openstackclient: Add geneve provider network type https://review.openstack.org/328470 | 00:41 |
*** zhurong has joined #openstack-sdks | 01:06 | |
*** aohuanxuan has joined #openstack-sdks | 01:33 | |
openstackgerrit | Huanxuan Ao proposed openstack/python-openstackclient: Support bulk deletion for commands that exist in both network and compute. https://review.openstack.org/328689 | 01:55 |
*** aohuanxuan has quit IRC | 02:16 | |
*** RuiChen has joined #openstack-sdks | 02:18 | |
*** coolsvap has joined #openstack-sdks | 02:18 | |
*** yanyanhu has joined #openstack-sdks | 02:29 | |
*** hieulq has joined #openstack-sdks | 02:32 | |
*** aohuanxuan has joined #openstack-sdks | 02:43 | |
openstackgerrit | Qiming Teng proposed openstack/python-openstacksdk: Relocate alarm service into a submodule https://review.openstack.org/226689 | 02:46 |
*** yuanying has quit IRC | 02:50 | |
*** yuanying has joined #openstack-sdks | 02:53 | |
*** zhurong has quit IRC | 02:56 | |
*** zhurong has joined #openstack-sdks | 02:56 | |
*** Klumben has quit IRC | 03:01 | |
*** aohuanxuan has quit IRC | 03:23 | |
*** erlon has quit IRC | 03:26 | |
*** sheel has joined #openstack-sdks | 03:34 | |
*** Klumben has joined #openstack-sdks | 03:35 | |
*** yuanying_ has joined #openstack-sdks | 03:48 | |
*** yuanying has quit IRC | 03:49 | |
*** gouthamr has quit IRC | 04:34 | |
*** aohuanxuan has joined #openstack-sdks | 04:45 | |
*** salv-orl_ has quit IRC | 04:54 | |
*** salv-orlando has joined #openstack-sdks | 04:54 | |
*** jaosorior has joined #openstack-sdks | 05:04 | |
*** salv-orlando has quit IRC | 05:17 | |
*** salv-orlando has joined #openstack-sdks | 05:17 | |
*** salv-orl_ has joined #openstack-sdks | 05:29 | |
*** salv-orlando has quit IRC | 05:32 | |
*** coolsvap has quit IRC | 05:57 | |
openstackgerrit | Huanxuan Ao proposed openstack/python-openstackclient: Fix help messages for ip availability https://review.openstack.org/329771 | 06:02 |
*** yuanying has joined #openstack-sdks | 06:03 | |
*** yuanying_ has quit IRC | 06:05 | |
*** coolsvap has joined #openstack-sdks | 06:10 | |
*** openstackgerrit has quit IRC | 06:18 | |
*** openstackgerrit has joined #openstack-sdks | 06:18 | |
*** yuanying has quit IRC | 06:21 | |
*** salv-orlando has joined #openstack-sdks | 06:24 | |
*** yuanying has joined #openstack-sdks | 06:28 | |
*** salv-orl_ has quit IRC | 06:28 | |
*** salv-orlando has quit IRC | 06:29 | |
openstackgerrit | Reedip proposed openstack/python-openstackclient: Add option to unset information from Routers https://review.openstack.org/305678 | 06:44 |
*** e0ne has joined #openstack-sdks | 06:51 | |
*** zhurong has quit IRC | 06:58 | |
*** fzdarsky has joined #openstack-sdks | 07:03 | |
*** yuanying has quit IRC | 07:05 | |
*** yuanying has joined #openstack-sdks | 07:08 | |
*** zhurong has joined #openstack-sdks | 07:11 | |
openstackgerrit | Alvaro Lopez Garcia proposed openstack/python-openstackclient: Refactor check_valid_auth_options function https://review.openstack.org/318201 | 07:19 |
*** dhellmann has quit IRC | 07:20 | |
*** dhellmann has joined #openstack-sdks | 07:20 | |
openstackgerrit | Huanxuan Ao proposed openstack/python-openstackclient: Add "--project" option to the "flavor create" command. https://review.openstack.org/329790 | 07:27 |
*** openstackgerrit has quit IRC | 07:33 | |
*** openstackgerrit has joined #openstack-sdks | 07:33 | |
*** amotoki has joined #openstack-sdks | 07:37 | |
openstackgerrit | Huanxuan Ao proposed openstack/python-openstackclient: Add "--project" option to the "flavor create" command. https://review.openstack.org/329790 | 07:37 |
*** salv-orlando has joined #openstack-sdks | 07:41 | |
*** jaosorior is now known as jaosorior_brb | 07:53 | |
openstackgerrit | Tang Chen proposed openstack/python-openstackclient: Add doc for logger usage https://review.openstack.org/329809 | 07:59 |
*** shu-mutou is now known as shu-mutou-AFK | 08:15 | |
*** kromanenko__ has joined #openstack-sdks | 08:16 | |
*** kromanenko has joined #openstack-sdks | 08:16 | |
*** jaosorior_brb has quit IRC | 08:40 | |
*** jaosorior_brb has joined #openstack-sdks | 08:41 | |
*** jaosorior_brb is now known as jaosorior | 08:41 | |
*** jaosorior has quit IRC | 08:57 | |
*** fzdarsky has quit IRC | 09:02 | |
*** fzdarsky has joined #openstack-sdks | 09:04 | |
*** jaosorior has joined #openstack-sdks | 09:21 | |
openstackgerrit | Huanxuan Ao proposed openstack/python-openstackclient: Support bulk deletion for commands that exist in both network and compute. https://review.openstack.org/328689 | 09:23 |
openstackgerrit | Tang Chen proposed openstack/python-openstackclient: Transfer "ip floating add/remove" to "server add/remove floating ip" https://review.openstack.org/302508 | 09:37 |
openstackgerrit | Tang Chen proposed openstack/python-openstackclient: Transfer "ip floating pool list" to "floating ip pool list" https://review.openstack.org/300388 | 09:37 |
openstackgerrit | Tang Chen proposed openstack/python-openstackclient: Transfer "ip fixed add/remove" to "server add/remove fixed ip" https://review.openstack.org/302590 | 09:37 |
openstackgerrit | Tang Chen proposed openstack/python-openstackclient: Transfer "ip floating CRUD" to "floating ip CRUD" https://review.openstack.org/302687 | 09:37 |
*** cdent has joined #openstack-sdks | 09:41 | |
*** salv-orlando has quit IRC | 09:47 | |
*** salv-orlando has joined #openstack-sdks | 09:48 | |
*** zhurong has quit IRC | 10:00 | |
reedip | tangchen | 10:09 |
reedip | tangchen: is osc_lib already in production? | 10:09 |
tangchen | reedip: Er...well, I'm not sure if it has been used in any production, but OSC | 10:12 |
tangchen | OSC is now using it. | 10:12 |
tangchen | reedip: osc_lib is just some common code moved from OSC. | 10:13 |
reedip | Okay, because I cannot find it it seems :( | 10:13 |
reedip | Need some review help ... if you have time | 10:13 |
tangchen | reedip: Sure. But not tonight. Will do it tomorrow. Please add me as a reviewer. :) | 10:14 |
openstackgerrit | Reedip proposed openstack/python-openstackclient: Add option to unset information from Routers https://review.openstack.org/305678 | 10:16 |
reedip | You are already a reviewer | 10:16 |
reedip | :) | 10:16 |
reedip | Sure , no problem | 10:16 |
tangchen | reedip: OK :) | 10:17 |
openstackgerrit | Reedip proposed openstack/python-openstackclient: Add option to unset information from ports https://review.openstack.org/302530 | 10:18 |
*** yanyanhu has quit IRC | 10:23 | |
*** betheynyx has joined #openstack-sdks | 10:29 | |
*** cdent has quit IRC | 10:43 | |
*** sdague has joined #openstack-sdks | 10:52 | |
*** salv-orlando has quit IRC | 10:56 | |
*** salv-orlando has joined #openstack-sdks | 10:57 | |
tangchen | reedip: Review done. Just some little problems that are easy to fix. :) | 11:01 |
openstackgerrit | Huanxuan Ao proposed openstack/python-openstackclient: Add default IP version and fix help messages for "ip availability list" https://review.openstack.org/329771 | 11:05 |
reedip | thanks tangchen | 11:05 |
*** salv-orlando has quit IRC | 11:06 | |
*** cdent has joined #openstack-sdks | 11:17 | |
*** thrash|g0ne is now known as thrash | 11:19 | |
openstackgerrit | Huanxuan Ao proposed openstack/python-openstackclient: Add default IP version and fix help messages for "ip availability list" https://review.openstack.org/329771 | 11:24 |
*** rtheis has joined #openstack-sdks | 11:29 | |
openstackgerrit | Huanxuan Ao proposed openstack/python-openstackclient: Add default IP version and fix help messages for "ip availability list" https://review.openstack.org/329771 | 11:33 |
openstackgerrit | Tang Chen proposed openstack/python-openstackclient: Setup deprecate msg for command.py https://review.openstack.org/329885 | 11:41 |
*** zhurong has joined #openstack-sdks | 11:46 | |
openstackgerrit | Srushti Gadadare proposed openstack/cliff: Fix logging and piping unicode multi-bytes characters issue https://review.openstack.org/329887 | 11:47 |
*** fzdarsky has quit IRC | 11:58 | |
*** e0ne has quit IRC | 12:01 | |
*** e0ne has joined #openstack-sdks | 12:02 | |
*** zhurong has quit IRC | 12:09 | |
*** zhurong has joined #openstack-sdks | 12:10 | |
*** erlon has joined #openstack-sdks | 12:13 | |
openstackgerrit | Tang Chen proposed openstack/python-openstackclient: Trivial: Fix incorrect import order in volume https://review.openstack.org/329900 | 12:14 |
openstackgerrit | Huanxuan Ao proposed openstack/python-openstackclient: Add "--project" option to the "flavor create" command. https://review.openstack.org/329790 | 12:16 |
openstackgerrit | Huanxuan Ao proposed openstack/python-openstackclient: Add default IP version and fix help messages for "ip availability list" https://review.openstack.org/329771 | 12:33 |
*** aohuanxuan has quit IRC | 12:34 | |
*** fzdarsky has joined #openstack-sdks | 12:42 | |
*** edmondsw has joined #openstack-sdks | 12:43 | |
*** salv-orlando has joined #openstack-sdks | 12:56 | |
*** salv-orlando has quit IRC | 12:56 | |
*** salv-orlando has joined #openstack-sdks | 12:56 | |
*** fzdarsky has quit IRC | 12:58 | |
openstackgerrit | Michael Krotscheck proposed openstack/js-openstack-lib: Added .eslintignore https://review.openstack.org/329911 | 13:04 |
openstackgerrit | Michael Krotscheck proposed openstack/js-openstack-lib: Moved eslint dependencies into devDependencies. https://review.openstack.org/329912 | 13:04 |
*** gouthamr has joined #openstack-sdks | 13:09 | |
*** cdent has quit IRC | 13:15 | |
openstackgerrit | Michael Krotscheck proposed openstack/js-openstack-lib: Moved eslint dependencies into devDependencies. https://review.openstack.org/329912 | 13:19 |
openstackgerrit | Michael Krotscheck proposed openstack/js-openstack-lib: Added nsp to prepublish check https://review.openstack.org/329921 | 13:19 |
*** michaelgugino has joined #openstack-sdks | 13:24 | |
openstackgerrit | Alvaro Lopez Garcia proposed openstack/python-openstackclient: Refactor setting defaults for some scope parameters https://review.openstack.org/322032 | 13:28 |
openstackgerrit | Michael Krotscheck proposed openstack/js-openstack-lib: Added gulpfile https://review.openstack.org/329926 | 13:29 |
stevemar | reedip: tangchen not ready for public consumption just yet :) | 13:35 |
stevemar | dtroyer: reedip: tangchen: we should move the last auth.py file out of the openstack module into osc_lib (https://github.com/openstack/osc-lib) | 13:37 |
dtroyer | stevemar: yes, I want to do that when I re-work the auth bits | 13:38 |
*** coolsvap has quit IRC | 13:39 | |
dtroyer | I want to break some of that down, but need to get the current o-c-c into my head (it has grown a scary amount) | 13:39 |
stevemar | dtroyer: you could do an interen 0.2.0 release *shrugs* | 13:41 |
stevemar | interim* | 13:41 |
dtroyer | sure? What is waiting on one other than the flavor thing I did? | 13:44 |
*** amotoki has quit IRC | 13:55 | |
openstackgerrit | Richard Theis proposed openstack/python-openstackclient: Add "--device-owner" option to "port list" https://review.openstack.org/329951 | 13:56 |
*** singhj has joined #openstack-sdks | 13:59 | |
*** zhurong_ has joined #openstack-sdks | 14:01 | |
*** zhurong has quit IRC | 14:02 | |
openstackgerrit | Tang Chen proposed openstack/python-openstackclient: Setup deprecate msg for command.py https://review.openstack.org/329885 | 14:08 |
*** cdent has joined #openstack-sdks | 14:14 | |
*** fzdarsky has joined #openstack-sdks | 14:17 | |
*** sigmavirus24_awa is now known as sigmavirus24 | 14:18 | |
*** betheynyx has quit IRC | 14:34 | |
*** zhurong_ has quit IRC | 14:54 | |
openstackgerrit | Alvaro Lopez Garcia proposed openstack/keystoneauth: WIP: fix OpenID Connect authorization code grant_type https://review.openstack.org/330006 | 15:15 |
openstackgerrit | Merged openstack/python-openstackclient: Add default IP version and fix help messages for "ip availability list" https://review.openstack.org/329771 | 15:17 |
openstackgerrit | Steve Martinelli proposed openstack/python-openstackclient: Setup deprecate msg for command.py https://review.openstack.org/329885 | 15:24 |
openstackgerrit | Steve Martinelli proposed openstack/keystoneauth: Use SAML2 requests plugin https://review.openstack.org/255056 | 15:25 |
*** sheel has quit IRC | 15:25 | |
*** coolsvap has joined #openstack-sdks | 15:31 | |
*** Kevin_Zheng has quit IRC | 15:41 | |
*** michaelgugino has quit IRC | 15:46 | |
stevemar | rtheis: mind double checking this one: https://review.openstack.org/#/c/328689/3 | 15:50 |
rtheis | stevemar: sure, will do | 15:51 |
*** michaelgugino has joined #openstack-sdks | 16:00 | |
*** krotscheck is now known as krotscheck_dcm | 16:09 | |
*** jaosorior has quit IRC | 16:20 | |
*** kromanenko__ has quit IRC | 16:26 | |
*** kromanenko has quit IRC | 16:26 | |
*** aimeeu has joined #openstack-sdks | 16:29 | |
openstackgerrit | Dolph Mathews proposed openstack/python-openstackclient: Do not prompt for scope options with default scoped tokens https://review.openstack.org/330057 | 16:31 |
openstackgerrit | Merged openstack/python-openstackclient: Support compute service force down/up https://review.openstack.org/325800 | 16:36 |
openstackgerrit | Richard Theis proposed openstack/python-openstackclient: Fix volume functional tests https://review.openstack.org/330067 | 16:41 |
*** michaelgugino has quit IRC | 16:45 | |
openstackgerrit | Merged openstack/python-openstackclient: Support bulk deletion for commands that exist in both network and compute. https://review.openstack.org/328689 | 16:54 |
*** sheel has joined #openstack-sdks | 16:58 | |
*** erlon has quit IRC | 17:00 | |
*** erlon has joined #openstack-sdks | 17:01 | |
*** singhj has quit IRC | 17:06 | |
*** coolsvap has quit IRC | 17:11 | |
*** singhj has joined #openstack-sdks | 17:14 | |
*** fzdarsky is now known as fzdarsky|afk | 17:14 | |
*** singhj has quit IRC | 17:18 | |
*** malloc83 has quit IRC | 17:36 | |
openstackgerrit | Ghe Rivero proposed openstack/python-openstackclient: OS_DEFAULT_DOMAIN must be an ID https://review.openstack.org/330121 | 17:53 |
openstackgerrit | Merged openstack/python-openstackclient: Setup deprecate msg for command.py https://review.openstack.org/329885 | 17:53 |
stevemar | rtheis: thanks for fixing the functional tests :) | 17:59 |
openstackgerrit | Dolph Mathews proposed openstack/python-openstackclient: Do not prompt for scope options with default scoped tokens https://review.openstack.org/330057 | 17:59 |
rtheis | stevemar: yw | 17:59 |
stevemar | dhellmann: i just realized we should release a new cliff, https://github.com/openstack/cliff/compare/2.0.0...master | 18:01 |
stevemar | we had a few bug fixes land there related to max-width | 18:01 |
dhellmann | stevemar : seems reasonable. there are some new features in there, too | 18:02 |
stevemar | dhellmann: i'll propose a new release, what's the new feature? | 18:03 |
dhellmann | a new environment variable | 18:04 |
dhellmann | c59f044 2016-05-08 13:43:36 +0200 Add CLIFF_MAX_TERM_WIDTH envvar to complement --max-width | 18:04 |
stevemar | yeah, that's what i said "... there related to max-width" :P anyway: https://review.openstack.org/#/c/330126/ | 18:09 |
dhellmann | :-) | 18:14 |
stevemar | rtheis: dtroyer awesome patch for OSC from dolphm https://review.openstack.org/#/c/330057/2 | 18:18 |
*** singhj has joined #openstack-sdks | 18:19 | |
*** singhj has quit IRC | 18:23 | |
openstackgerrit | Steve Martinelli proposed openstack/python-openstackclient: better functional test collection https://review.openstack.org/330137 | 18:27 |
openstackgerrit | Steve Martinelli proposed openstack/python-openstackclient: better functional test collection https://review.openstack.org/330137 | 18:27 |
*** e0ne has quit IRC | 18:30 | |
*** singhj has joined #openstack-sdks | 18:30 | |
*** sdague has quit IRC | 18:34 | |
*** aimeeu has quit IRC | 18:39 | |
*** sdague has joined #openstack-sdks | 18:41 | |
*** salv-orlando has quit IRC | 18:43 | |
*** salv-orlando has joined #openstack-sdks | 18:44 | |
*** jaosorior has joined #openstack-sdks | 18:44 | |
*** aimeeu has joined #openstack-sdks | 18:44 | |
openstackgerrit | Merged openstack/cliff: Add more test coverage for CSV formatter https://review.openstack.org/316382 | 18:45 |
*** cdent has quit IRC | 18:55 | |
*** salv-orl_ has joined #openstack-sdks | 18:55 | |
*** salv-orlando has quit IRC | 18:58 | |
openstackgerrit | Merged openstack/cliff: Add more test coverage for shell formatter https://review.openstack.org/316424 | 19:02 |
*** sheel has quit IRC | 19:05 | |
openstackgerrit | Merged openstack/python-openstackclient: Fix volume functional tests https://review.openstack.org/330067 | 19:11 |
stevemar | dhellmann: one more cliff test patch: https://review.openstack.org/#/c/316059/3/cliff/tests/test_formatters_table.py | 19:15 |
dtroyer | could you guys take a look at https://review.openstack.org/#/c/287536/ in cliff too? It would be helpful for a couple of things in OSC | 19:20 |
dhellmann | stevemar, dtroyer : added to my queue | 19:20 |
*** cdent has joined #openstack-sdks | 19:20 | |
*** cdent has quit IRC | 19:24 | |
dhellmann | dtroyer : do we need a flag to indicate whether something is machine readable? doesn't the formatter implementation know that? | 19:30 |
dtroyer | the formatter does, but we need it in the command class to know if a field needs additional formatting, say to de-json a field that contains a list | 19:31 |
dtroyer | I expect the formatter to set this as the table one does in the review | 19:32 |
stevemar | dtroyer: i think we need an XML formatter | 19:33 |
*** openstackgerrit has quit IRC | 19:33 | |
* dtroyer fires a BFG at stevemar | 19:33 | |
*** openstackgerrit has joined #openstack-sdks | 19:34 | |
dtroyer | there is probably a better way to do this, but at the time it was not apparent to me | 19:34 |
* stevemar disintegrates at the slight of a large green plasma blast | 19:34 | |
dhellmann | dtroyer : does the command class give the formatter a string? I honestly don't remember how that works, but I would expect the formatter to deal with all of this so if we're giving it a string maybe that's the issue? | 19:34 |
stevemar | dhellmann: IIRC i think its so that OSC can check whether we want to format properties (dicts) / tags (lists) prettily, or leave them in JSON | 19:39 |
dhellmann | stevemar : right, I get that. I think that's the formatter's job. Maybe we need to flag columns as "may be reformattable by machine readable formatters"? | 19:39 |
dtroyer | There are a number ofplaces that work is done long before we return the data back thgouth cliff's formatters | 19:40 |
dhellmann | having the main application look at what type of formatter it has and take action feels like it's mixing concerns. so if we have data that can be reformatted, we shouldn't serialize it in the app | 19:40 |
dtroyer | here is one example: http://git.openstack.org/cgit/openstack/python-openstackclient/tree/openstackclient/compute/v2/server.py#n112 | 19:40 |
dtroyer | then we need to teach cliff many more specific field types | 19:41 |
dhellmann | possibly | 19:41 |
dhellmann | I wonder if we could get away with some sort of meta thing with 2 options, the human readable view and the machine readable view | 19:42 |
dhellmann | so column values could either be strings or instances of a thing we construct and pass (data, format_for_humans, format_for_machines) | 19:43 |
dhellmann | then the formatters could call the right method, which would call the functions given | 19:43 |
dhellmann | we could subclass if we want, but we wouldn't have to | 19:43 |
dhellmann | FormattableColumnValue | 19:43 |
dtroyer | I would have to walk through a number of examples to see if that is sufficient | 19:44 |
stevemar | dhellmann: do you know why this failed? is it because i have to move that to _independent? | 19:44 |
dtroyer | I do know there are a couple of places where we need to do some branching based on output formet. right now, it's just broken | 19:44 |
stevemar | dhellmann: a link would help... https://review.openstack.org/#/c/330126/ | 19:44 |
stevemar | (while we're all talking about cliff) | 19:44 |
*** salv-orl_ has quit IRC | 19:45 | |
*** salv-orlando has joined #openstack-sdks | 19:45 | |
dhellmann | dtroyer : looking at prep_server_detail, I see generic cases for "named thing with id" (image, flavor), special cases for format_servers_list_networks and format_servers_list_power_state | 19:45 |
dhellmann | stevemar : the deliverable name in the governance repo doesn't match the file name in the releases repo. I think you want to call that file cliff.yaml | 19:46 |
stevemar | dhellmann: alright, weird, it was called python-cliff in all other releases o_O | 19:47 |
dhellmann | stevemar : possibly this is a new validation rule | 19:47 |
*** e0ne has joined #openstack-sdks | 19:48 | |
dtroyer | pushing the individual field formatting into cliff is a major change and is going to require a hell of a lot more time than I have in the forseeable future. | 19:55 |
dtroyer | I also need to unbreak field wrapping so it is off by default in 3.0 | 19:55 |
dtroyer | the default should have never changed and it is driving me nuts | 19:55 |
*** jaosorior has quit IRC | 19:57 | |
dhellmann | ok, yeah, I get that | 19:58 |
dhellmann | are there specific fields where this is an issue? maybe I can take a stab at something to get it started | 19:58 |
dtroyer | those in the server I linked to are some of the older examples, darn near anything in a network command has newer more neutron-like examples | 19:59 |
dhellmann | ok | 19:59 |
*** krotscheck_dcm is now known as krotscheck | 20:00 | |
dtroyer | http://git.openstack.org/cgit/openstack/python-openstackclient/tree/openstackclient/network/v2/router.py#n50 is the formatter dict, http://git.openstack.org/cgit/openstack/python-openstackclient/tree/openstackclient/network/v2/router.py#n444 is where it is called in take_action() | 20:00 |
dtroyer | some of those are generic enough though | 20:01 |
dtroyer | The other approach I took last winter was to look at exposing the CLI options cliff defines so the app can interpret itself, but that doesn't account for any app-specific formatters that may be added | 20:03 |
dhellmann | yeah that's just going to spread the complexity around | 20:05 |
*** gouthamr has quit IRC | 20:05 | |
dhellmann | I think this is something I got wrong in the initial design of cliff | 20:05 |
dtroyer | it is worse in multiple ways | 20:05 |
dhellmann | I wasn't expecting such complicated values for individual columns | 20:05 |
dtroyer | shoot, neither was I. we still don't have decent ways to present some of this nested data | 20:06 |
*** fzdarsky|afk has quit IRC | 20:07 | |
dhellmann | for human readability, tables may not be the best solution for some of this | 20:07 |
dhellmann | another approach is command-specific formatters | 20:08 |
dhellmann | which is basically what we've done, just not in formatter plugins | 20:08 |
openstackgerrit | Merged openstack/cliff: Support multiple sub commands in completion https://review.openstack.org/284654 | 20:21 |
openstackgerrit | Dean Troyer proposed openstack/python-openstackclient: Finish osc-lib transition for command.py https://review.openstack.org/330193 | 20:29 |
openstackgerrit | Doug Hellmann proposed openstack/cliff: add formattable columns concept https://review.openstack.org/330223 | 21:09 |
dhellmann | dtroyer : ^^ | 21:09 |
dhellmann | dtroyer : suggestions on a better name for "formattable columns" are welcome | 21:10 |
*** rtheis has quit IRC | 21:12 | |
*** e0ne has quit IRC | 21:14 | |
dtroyer | dhellmann: I am playing with that, don't have a better name than FormattableColumn (yet), it is a good start | 22:01 |
dtroyer | I have found something that I did not anticipate though, and my hack didn't address either | 22:01 |
dhellmann | oh? | 22:01 |
dtroyer | 'machine readable' means different things in different formatters | 22:01 |
dhellmann | yeah, that method is supposed to return a real object, not a string, and let the formatter actually format it | 22:02 |
dtroyer | I'm looking at the shell formatter, you have it using human_readable() which I didn't like at first, but I see why now | 22:02 |
dhellmann | we could also add more methods to that class, for other more-specific cases | 22:02 |
dtroyer | one of the things some want in human_readable is \n chars, which I think will break in shell | 22:02 |
*** openstackgerrit has quit IRC | 22:02 | |
dhellmann | IIRC the shell formatter already stripped newlines | 22:02 |
dhellmann | maybe that got lost in my patch, or maybe that was somewhere else | 22:03 |
dtroyer | I don't see that now, just escaping " chars | 22:03 |
dtroyer | anyway, for a first cut it looks good and will go a long way, thanks | 22:04 |
dhellmann | hmm, no, I mis-remembered | 22:04 |
dtroyer | anyway, what I am worried about may be better done as an anhancement to the shell formatter itself | 22:05 |
dtroyer | like stripping the \n chars as you thought it did ;) | 22:06 |
dhellmann | sure, and like I said, once we have this in place we can add more methods for things like human_readable_single_line() and human_readable_multiline() | 22:06 |
*** openstackgerrit has joined #openstack-sdks | 22:06 | |
dtroyer | that should work. I am wondering about which ones should be considered human readableā¦in my mind it was only table, the others are meant to be parsed in one way or another | 22:08 |
dtroyer | I can make a note in the review and go from there | 22:09 |
dhellmann | ok | 22:09 |
dtroyer | thanks again, this is a huge help | 22:09 |
dhellmann | I thought value might have been human readable, too? maybe not | 22:09 |
dtroyer | it was meant for directly getting an ID, say, in $(openstack image show fred) etc | 22:09 |
dtroyer | IIRc we use it in devstack | 22:10 |
dhellmann | ah, right | 22:11 |
*** salv-orlando has quit IRC | 22:25 | |
*** salv-orlando has joined #openstack-sdks | 22:26 | |
*** edmondsw has quit IRC | 22:40 | |
openstackgerrit | Dean Troyer proposed openstack/python-openstackclient: Finish osc-lib transition for command.py https://review.openstack.org/330193 | 22:50 |
openstackgerrit | Dean Troyer proposed openstack/python-openstackclient: Test new cliff column formatting https://review.openstack.org/330261 | 22:51 |
dtroyer | dhellmann: Is this the sort of usage you had in mind for the FormattableColumn? https://review.openstack.org/#/c/330261/ | 22:53 |
*** gouthamr has joined #openstack-sdks | 22:54 | |
openstackgerrit | Colleen Murphy proposed openstack/keystoneauth: Fix kerberos available property https://review.openstack.org/330265 | 22:56 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!