Monday, 2014-10-13

*** etoews has joined #openstack-sdks00:27
*** etoews has quit IRC00:32
*** etoews has joined #openstack-sdks00:46
*** etoews has quit IRC00:51
*** bknudson has quit IRC01:33
openstackgerritA change was merged to openstack/python-openstackclient: Remove 'links' section from several v3 Identity objects  https://review.openstack.org/12586903:26
*** etoews has joined #openstack-sdks04:46
*** etoews has quit IRC04:50
*** etoews has joined #openstack-sdks05:04
openstackgerritDean Troyer proposed a change to openstack/python-openstackclient: Add some session/api examples  https://review.openstack.org/12787305:07
*** briancurtin has quit IRC05:09
dtroyermordred: I leave you with what it took to use trunk OSC's ClientManager as a library…it turned out to be less than I expected, there is still plenty to do to make it really friendly:  https://review.openstack.org/#/c/127873/1/examples/osc-lib.py,unified05:14
*** etoews has quit IRC05:14
dtroyerthe addition of os-client-config will make it trivial to handle multiple clouds at once05:15
* dtroyer zzzzzzzzzzzzzzzzzz05:15
*** etoews has joined #openstack-sdks05:27
*** etoews has quit IRC05:33
*** etoews has joined #openstack-sdks05:41
*** etoews has quit IRC05:46
*** etoews has joined #openstack-sdks05:59
*** etoews has quit IRC06:04
*** k4n0 has joined #openstack-sdks06:16
*** tellesnobrega has quit IRC07:28
*** etoews has joined #openstack-sdks08:14
*** etoews has quit IRC08:18
*** etoews has joined #openstack-sdks08:32
*** etoews has quit IRC08:37
*** f13o has joined #openstack-sdks08:50
*** k4n0 has quit IRC08:50
*** k4n0 has joined #openstack-sdks08:55
*** k4n0 has quit IRC09:35
openstackgerritMatthieu Huin proposed a change to openstack/python-openstackclient: Unscoped federated user-specific commands  https://review.openstack.org/12410109:45
*** k4n0 has joined #openstack-sdks09:54
*** k4n0 has quit IRC09:55
*** k4n0 has joined #openstack-sdks09:55
openstackgerritMatthieu Huin proposed a change to openstack/python-openstackclient: Unscoped federated user-specific commands  https://review.openstack.org/12410110:54
*** mlilenium_ has joined #openstack-sdks11:27
*** mlilenium_ has left #openstack-sdks11:27
*** k4n0 has quit IRC12:21
*** toabctl has quit IRC12:22
*** toabctl has joined #openstack-sdks12:24
*** bknudson has joined #openstack-sdks12:39
*** terrylhowe has joined #openstack-sdks13:35
*** sigmavirus24_awa is now known as sigmavirus2413:54
*** briancurtin has joined #openstack-sdks13:57
*** mfer has joined #openstack-sdks13:58
*** Guest20248 is now known as redrobot14:06
*** etoews has joined #openstack-sdks14:31
openstackgerritMatt Farina proposed a change to stackforge/golang-client: Initial inclusion of v3 authentication with the retrival of a token.  https://review.openstack.org/12731015:01
mferdtroyer ping15:02
*** etoews has quit IRC15:05
*** etoews has joined #openstack-sdks15:07
openstackgerritA change was merged to stackforge/openstack-sdk-php: Adding URL class for better encapsulation  https://review.openstack.org/9575115:11
dtroyermfer: hey, you're alive!15:13
mferdtroyer something like that15:13
mfer:D15:13
*** ayoung has joined #openstack-sdks15:26
openstackgerritDean Troyer proposed a change to openstack/python-openstackclient: Update use of open() in object API  https://review.openstack.org/12733015:34
*** etoews has quit IRC15:37
sigmavirus24dtroyer: re: requests-mock testing a body that is streamed, how do you imagine it would check equality? file-object properties, e.g., fd.name, fd.tell(), etc.?15:37
dtroyersigmavirus24: at this point I'd just settle for testing a simple non-streamed body, such as a POST that contains JSON, like the compute API action request15:39
dtroyeranything more complicated than that can be out of scope15:39
sigmavirus24wait requests-mock doesn't let you test posting a simple json string?15:40
dtroyerif it does I couldn't find it when I added it myself15:40
*** etoews has joined #openstack-sdks15:40
sigmavirus24dtroyer: ah yeah, I was confusing specifying a response body for a request body15:43
sigmavirus24so granted it's hard to handle matching json bodies because of dictionary randomization, but you can do equality checks after deserializing the string to a dictionary and it *should* just work15:44
dtroyerI'm just looking for a simple string match right now; did I miss a way to extract the request body without modifying the matcher bits?15:49
sigmavirus24no I was just thinking out loud15:51
sigmavirus24There's https://review.openstack.org/#/c/117110/15:51
sigmavirus24but it's not merged yet15:52
sigmavirus24and I'm a bit surprised there's no way to tell requests-mock to match on body15:52
sigmavirus24*request body15:52
*** stevemar has joined #openstack-sdks16:15
openstackgerritSteve Lewis proposed a change to stackforge/python-openstacksdk: Handle booleans that are strings in APIs  https://review.openstack.org/12420916:42
*** stevemar has quit IRC16:57
*** ayoung has quit IRC17:05
briancurtinstevelle: If you make the third parameter False in that getattr in openstack/resource.py, the return value is truthy either way and you don't need to compare against "is not None". Could just be "if getattr(value, 'parsed', False):"17:11
stevellebriancurtin: I made a comment on the prior changeset, that false parameter worked for me a week or two ago but I couldn't get it to work in this case I was getting False always.17:11
briancurtinactually, since we need the result, we should do something different. keep your None in there but store the result, so like "x = getattr(...None)" and then do if x: value = x17:12
briancurtinsubmitting a better comment on that right now17:14
*** ayoung has joined #openstack-sdks17:21
terrylhowewell if x: won’t work for booleans right?17:28
terrylhoweif x is None: right?17:28
terrylhoweI think the comment briancurtin made had the correct format17:29
terrylhowethe comment in the review that is17:29
sigmavirus24briancurtin: if x is False, we'll never used the parsed attribute17:32
sigmavirus24it should be None as a sentinel17:32
briancurtinsigmavirus24: check the comment on the review, teh one i wrote in here is crappy17:32
briancurtinbasically, get rid of doing the getattr twice17:33
sigmavirus24ah17:35
sigmavirus24Yeah sorry, just looked at IRC again, hadn't looked at the review ye17:35
openstackgerritDean Troyer proposed a change to openstack/python-openstackclient: Move plugin stuff to clientmanager  https://review.openstack.org/12802317:35
sigmavirus24*yet17:35
openstackgerritSteve Lewis proposed a change to stackforge/python-openstacksdk: Handle booleans that are strings in APIs  https://review.openstack.org/12420917:35
stevellebriancurtin: terrylhowe sigmavirus24 thx all.17:37
* sigmavirus24 didn't do anything17:37
stevellethx to you all, I didn't either.17:38
openstackgerritDean Troyer proposed a change to openstack/python-openstackclient: Add some session/api examples  https://review.openstack.org/12787317:48
*** etoews has quit IRC18:02
*** etoews has joined #openstack-sdks18:15
*** etoews has quit IRC18:24
*** etoews has joined #openstack-sdks18:38
*** etoews has quit IRC18:44
*** etoews has joined #openstack-sdks18:45
*** mfer has quit IRC21:04
openstackgerritDean Troyer proposed a change to openstack/python-openstackclient: Close files on server create, add tests  https://review.openstack.org/12810921:47
*** briancurtin has quit IRC21:51
*** bknudson has quit IRC22:04
*** briancurtin has joined #openstack-sdks22:12
openstackgerritTerry Howe proposed a change to stackforge/python-openstacksdk: Add ability to extract a list of versions  https://review.openstack.org/12133522:46
*** sigmavirus24 is now known as sigmavirus24_awa22:53
*** etoews has quit IRC22:58
*** etoews has joined #openstack-sdks22:58
*** etoews has quit IRC23:03
*** openstackgerrit has quit IRC23:03
*** openstackgerrit has joined #openstack-sdks23:04
*** briancurtin has quit IRC23:14
*** etoews has joined #openstack-sdks23:17
*** etoews has quit IRC23:22
*** openstackgerrit has quit IRC23:33
*** openstackgerrit has joined #openstack-sdks23:34
*** briancurtin has joined #openstack-sdks23:39
*** briancurtin has joined #openstack-sdks23:39
*** bknudson has joined #openstack-sdks23:55

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