/srv/irclogs.ubuntu.com/2014/07/25/#juju-dev.txt

wallyworldthumper: juju run --machine=0 "echo $http_proxy"     <--- that should work right?00:06
thumperyep00:06
wallyworldok, ta00:06
rick_h__wallyworld: pong00:09
wallyworldrick_h__: hi, i got my question answered. i was asking about charm store and http proxy00:09
rick_h__wallyworld: cool, good because I don't know any answers around proxy use :)00:10
wallyworld:-)00:10
mattywdavecheney, one more look please sir https://github.com/juju/juju/pull/40100:15
* davecheney sir looks00:17
davecheneymattyw: closer, but one more round please00:24
mattywdavecheney, no problem, thanks for looking (sir)00:24
axwperrito666: probably too late, but recover()01:16
davecheney    c.Assert(uuidA, gc.Not(gc.Equals), uuidB)01:20
davecheney... obtained string = "6216dfc3-6e82-408f-9f74-8565e63e6158"01:20
davecheney... expected string = "6216dfc3-6e82-408f-9f74-8565e63e6158"01:20
davecheneyda fuq01:20
axwtype01:20
davecheneyaxw: must be01:20
davecheneyor one implments Stringer()01:20
mattywdavecheney, please sir, can I have some more https://github.com/juju/names/pull/2001:22
axwkatco: are you awake? I can't see the card you're talking about in your email01:25
axwthe link is just to the board AFAICT01:26
axwwallyworld: ^^01:26
davecheneyaxw: that test was asserting that two calls to utils.NewUUID returned two different uuids by bootstrapping two environments, then comparing the results of env.UUID01:26
wallyworldaxw: it's the car din coding lane01:26
wallyworldcard01:26
wallyworld132230201:27
axwdavecheney: righto. are they []byte ?01:27
davecheney(ノಠ益ಠ)ノ彡┻━┻01:27
axwthanks wallyworld01:27
wallyworldsure01:27
mattywdavecheney, one last one please https://github.com/juju/juju/pull/40101:43
mattywdavecheney, you know you love it01:43
davecheneymattyw: don't presume to know what I would, or would not, "love"01:44
waiganidunedin sprinters: http://www.eventfinder.co.nz/2014/the-internet-party-presents-the-party-party/dunedin02:22
davecheneythe party of the first party invites the party of the second party to the party of the party party02:28
davecheneythumper:02:46
davecheneyfunc SampleConfig() testing.Attrs {02:46
davecheney        return testing.Attrs{02:46
davecheney                "type":                      "dummy",02:46
davecheney                "name":                      "only",02:46
davecheney                "uuid":                      "90168e4c-2f10-4e9c-83c2-feedfacee5a9",02:47
davecheneythumper: https://bugs.launchpad.net/juju-core/+bug/134845803:01
_mup_Bug #1348458: configstore: if the size of the serialised jenv decreases the .jenv file will be corrupt <juju-core:In Progress by dave-cheney> <https://launchpad.net/bugs/1348458>03:01
thumperdavecheney: paste.ubuntu.com/7851754/03:12
davecheneythumper:  https://github.com/juju/juju/pull/40203:14
cmarsjam2, good morning. can you take a look at my latest versioned login PR? https://github.com/juju/juju/pull/39203:24
jcw4fwereade: ping03:50
davecheneythumper: fwereade https://github.com/juju/juju/pull/40304:10
davecheneyfighting a few failing tests, but this PR is close to being ready04:11
davecheneyreviews appreciated04:11
axwdavecheney: I think we want Prepare to set the UUID? then it will be valid in the .jenv04:14
davecheney(╯°□°)╯︵JUJU04:15
davecheney(╯°□°)╯︵∩ſ∩ſ04:16
jcw4davecheney: 403 looks good to me :)04:17
davecheneyaxw: ok, i'll move that logic to prepare04:18
davecheneyyou are right04:18
axwdavecheney: cool, thanks04:19
davecheneyaxw: where is this Prepare method ?04:19
axwdavecheney: so each Environ defines one, but I think we'd want it to be done in a provider-independent part. there's a Prepare function in the environs package04:20
axwwhich calls the Environ-specific one04:20
axwdavecheney: update environs.prepare (lowercase), which does similar things for certs and admin-secret04:21
davecheneyok04:22
davecheneyaxw: thanks, that is much clearer04:25
davecheneyaxw:  ptl04:29
davecheneyptal04:29
davecheneyi'm running the tests again now04:29
axwlooking04:29
davecheney'no04:29
davecheneystop04:29
davecheneyi fucked up04:29
axwk04:29
davecheneyok, fixed04:30
davecheney % juju destroy-environment -y $(juju switch)04:51
jcw4davecheney PTAL : https://github.com/juju/juju/pull/35105:05
jcw4I won't presume to say you'd love to05:05
tasdomascmars, https://github.com/juju/juju/pull/36905:11
mattywjcw4, even though he does05:11
jcw4mattyw: :D05:11
jcw4it looks like I lost davecheney to the party of the second party at the party of the party05:13
davecheneyi'm partied out05:14
jcw4hehe05:14
mattywdavecheney, less chatting, more reviewing05:14
davecheneymattyw: less colonies, more brtiania05:15
jcw4Britannia? mattyw is a pommie?05:16
jcw4or wait... vice versa05:16
davecheneyI AM ZUUL, THE DESTROYER OF ENVIRONMENTS05:16
davecheneyCHOOSE05:16
davecheneyCHOOSE THE FORM OF THE DESTRUCTOR05:16
jcw4:)05:16
mattywdavecheney, sounds like you're done for the day as well05:16
mattywjcw4, and yes, me = pom05:17
jcw4visiting the convicts this week mattyw ?05:17
jcw4I guess that wouldn't be NZ05:17
jcw4I'm getting confused with AUS05:18
mattywjcw4, I have to keep an eye on things for auntie Liz05:18
davecheneyno convicts in NZ05:18
jcw4hehe05:18
davecheneywell, none that I am related too05:18
tasdomasdavecheney, iirc convicts escaping from aus usually ended up in nz05:18
tasdomasso yes, there are convicts - "the ones that got away"05:19
jcw4ex-cons ... perfect05:19
jcw4I better not antagonize davecheney until he's done with https://github.com/juju/juju/pull/35105:21
davecheneyjcw4: i'm sensing you want something05:23
davecheneyno05:23
davecheneywait05:23
davecheneydon't tell me05:23
davecheneyi'll figure it out05:23
jcw4hehe, well, since it's after 5pm there, it may end up being mgz that has to suffer through it05:23
jcw4fwereade: did the rest of the sprint team loose internet?05:44
jcw4lose even05:45
=== jcw4 is now known as jcw4|Zzz
axwwallyworld: I've got all the tests passing with 2.6 again, and local bootstraps. need to make sure 2.4 still works, then I'll get onto proposing a bunch of branches06:31
axwneed to go pick up my daughter and do a couple of things at the other house right now tho - bbl06:31
bodie_A review on https://github.com/juju/juju/pull/399 would be much appreciated :)07:06
wallyworldaxw: awesome, look forward to the branches07:13
axwrogpeppe1: heya. in case you were thinking of doing it, I thought I'd better let you know I'm going to update charmstore to use gopkg.in/mgo.v2 in the near future10:29
axwI'm updating everything from labix.org/v2/mgo -> gopkg.in/mgo.v210:30
rogpeppe1axw: ah, cool10:30
rogpeppe1axw: does that mean i can finally move forward with using gopkg.in/juju/charm.v2 ?10:30
* axw shrugs10:30
axwI don't have a problem with it10:30
rogpeppe1axw: as AFAICS the only argument against it was that it introduced a new dependency10:31
axwwe now have gopkg.in/natefinch/lumberjack.v2, so I don't think that's a valid argument anymore10:31
rogpeppe1axw: could you submit a PR for the v4 branch of the charm store too, please?10:31
rogpeppe1axw: right10:31
rogpeppe1axw: the v4 branch is what we're currently working on10:31
axwrogpeppe1: sure, will make a note10:31
rogpeppe1axw: ta10:31
wallyworld_katco: mgz: i made it back in time11:59
katcowallyworld_: :)11:59
=== cliff-hm is now known as cliff-mtg
wallyworld_mgz: katco: sorry, google has died, trying to reconnect12:18
katcowallyworld_: np12:19
natefinchmorning all12:19
TheMuenatefinch: morning12:35
perrito666axw: still here?12:37
=== psivaa is now known as psivaa-afk
perrito666morning everyone12:47
mgzmornin'12:48
* perrito666 sharing office with friends... one gets to miss the connection all for himself12:49
perrito666sinzui: morning are you around?12:49
* perrito666 notices that we all add each other on g+ just to get rid of the "there are people in this call which are not part of your circles" message13:03
katcoperrito666: :)13:08
katcoperrito666: it boggles me that Google didn't anticipate this issue13:08
perrito666what do you mean it didn't? that message is a clear plot from google to make people use g+13:09
gsamfirakatco: they may have. I can just imagine a comment above the notification code saying: trolololo13:10
katcogsamfira: lol13:10
katcoin tests, we alias the various testing subdirectories, e.g.: kvmtesting "github.com/juju/juju/container/kvm/testing"13:17
katcowhat would be a good alias for "github.com/juju/testing"?13:17
perrito666katco: we do that when we have two testings involved usually13:18
katcocoretesting is already taken in this instance by "github.com/juju/juju/testing"13:18
perrito666coretesting iirc is the alias used for that13:18
perrito666ah13:18
perrito666lol13:18
katco;)13:19
perrito666well you can use that one as testing13:19
katcoi am psychic! or at least a good neural network13:19
perrito666and then alias the regular testing13:19
perrito666as stdtesting13:19
katcoso github.com/juju/testing as stdtesting?13:19
katcoor maybe just "testing" since it's most root?13:19
perrito666katco: ah if you have no testing other than that I guess testing is a good reason13:20
perrito666s/reason/name13:20
perrito666hint: if you talk to me when i am typing i will write whatever you tell me13:21
katcono, sorry, there _is_ other testing, but i don't know what's more general than "coretesting"13:21
katcoperrito666: LOL13:21
katcoi do that too sometimes13:21
katcoactually, there's a funny story that when they used to pay typists to type in handwritten books, sometimes the typists would slip in whatever they were thinking at the moment13:22
katcothere were some funny entries :)13:22
perrito666whel it is a side effect of touch typing I guess13:22
perrito666sometimes the wrong thread will irq and then you start dropping the wrong stream to stdout13:23
katcoLOL13:23
katconerd humor is the best humor :)13:23
perrito666natefinch: U around? says my cal I need to call you in 6 mins13:24
=== jcw4|Zzz is now known as jcw4
sinzuiSomething bad landed in trunk in the las 14 hours. All the upgrade tests for all the substrates failed. I am looking for the first cause. Once there is a failure, all subsequent attempts to use the env fail because there are invalid mappings in the jenv.13:39
perrito666sinzui: I just noticed the same13:40
perrito666sinzui: in my case the last N bytes of the jenv are repeated13:40
sinzuiI also need to purge all the clouds of the dead zombies instance.13:40
perrito666uff, thank god i thought I was going crazy13:41
mgzsinzui: hm, any rough idea of the blame rev?13:41
sinzuimgz, I am still looking.13:44
perrito666I put my money on 5b54fcbfc1a651c5e2435f13b2b479187cc5499f13:47
perrito666but I just read the PR messages so dont take my word for it13:49
perrito666sinzui: mgz13:49
sinzuimgz, perrito666 the issue happened after commit f81c377f, first seen in commit 7c98f388 :(13:50
sinzuiCI was testing the 1.20 branch for more than 20 hours, so many commits were merged into master13:51
* perrito666 checks13:51
perrito666sinzui: f81c377f is most likely not related13:53
sinzuiperrito666, 7c98f38891eb98e6f1a8b01a46e3a9700eb51003 might be the corrupter of the env. http://juju-ci.vapour.ws:8080/job/aws-upgrade-precise-amd64/1569/console end with a report of bad yaml13:54
perrito666sinzui: I doubt it13:55
perrito666that change is harmless13:56
mgz3613c1I wonder if trunk would actually pass13:57
mgzwhooops13:57
perrito666mgz: /13:57
mgzand it's just the juggling of environ config that borked it13:57
perrito666?13:57
mgzpr 362 + pr 38713:58
tvansteenburghhey guys, i'm getting a nil pointer error running juju status: http://pastebin.ubuntu.com/7856024/13:59
perrito666mgz: sinzui let me run my current branch with a test I know it fails and I can tell you fast enough (~15 mins)14:01
mgzperrito666: thanks14:02
sinzuiperrito666, mgz: this is a jenv left behind. I don't see anything wring with it other than it was left behind: https://pastebin.canonical.com/114224/14:02
ericsnownatefinch, perrito666: standup?14:02
natefinchericsnow yep14:02
natefinchtvansteenburgh: weird... there's a nil check that should stop that, at least in trunk14:03
perrito666sinzui: my quick guess it re-writes in the same file without truncating prev content14:03
perrito666natefinch: ericsnow gimme a sec14:03
mgzhm, and that would suggest a windows change...14:04
ericsnowperrito666: no worries14:04
perrito666sinzui: mgz if that is the case, the second write is shorter and therefore leaves dirty file14:04
perrito666I am actually surprised we can do that :p14:04
perrito666ok, running test_recovery with master tip14:05
perrito666that should tell us if this is still failing14:05
perrito666mgz: anyway if it works it means we are still writing improperly but being lucky14:06
perrito666ok running we will have to wait a moment14:06
tvansteenburghnatefinch: any suggestions for working around this problem?14:11
natefinchtvansteenburgh: investigating14:14
ericsnownatefinch: sorry, I kept interrupting you!14:49
perrito666sinzui: mgz master seems to be working14:49
mgzsort-of ace14:49
perrito666oooor, its writing more in the file14:49
perrito666:p14:49
mgzum..14:49
mgzso not then14:50
perrito666because I am getting uuid which i did not before14:50
natefinchfrig, godeps is platform specific14:50
natefinchgodeps ./...  on linux prints out all the dependencies for linux, but leaves out dependencies that only exist in windows-specific files :/14:50
perrito666mgz: I suspect the bug was there longer than we supposed14:51
mgzprobably14:51
mgzbleh14:51
perrito666I see some changes from tim which might be touching how the jenv is saved check 5b54fcbfc1a651c5e2435f13b2b479187cc5499f14:52
mgzright, that revert and the initial change was my guess for the breakage14:52
sinzuiperrito666, mgz: the problem is14:56
* perrito666 drumrolls14:56
bodie_existential tension14:56
sinzuiline 138 from the pastebin. "zonaws.com/testing/tools" is missing the end colon14:56
sinzui^ mgz, perrito666 , so is it a package not juju itself that is evil14:57
sinzuiOh, I see, that is truncation of tools-metadata-url: http://juju-dist.s3.amazonaws.com/testing/tools from line 135 or 13614:58
perrito666true14:58
perrito666in my case its the same but eople.canonical.com... blah and then a newline that says type:ec214:59
perrito666sinzui: yup same issue14:59
perrito666it is consistent-ish with my guess15:00
perrito666but i have no evidence to support it15:00
natefinchrogpeppe1: I just realized using godeps to print out dependencies is platform-specific to the platform you're running on... e.g. we have dependencies that only exist in _windows.go files, and those don't get picked up by running godeps on linux.  Do you know if that's fixable?15:00
perrito666natefinch: do you want to fix that?15:01
rogpeppe1natefinch: it is fixable, but not trivially15:01
perrito666i mean, there is a chance that the dep is also windows only15:01
rogpeppe1natefinch: the default is just to use go/build's defaults15:01
natefinchperrito666: yes, but if you use godeps on the wrong platform you'll get the wrong dependencies15:01
natefinchor rather... you'll get a partial list which is ok for you on your platofrm15:02
perrito666natefinch: wich mkes some sense15:02
perrito666go deps will give you what you need to build your app in that platform15:03
perrito666sinzui: my test run was wrong, re-running now, just in case /cc mgz15:03
natefinchperrito666: but in *generating* the list of dependencies... you want it to find *all* dependencies for *all* platforms15:04
natefinchman, TSV is the worst format ever15:06
natefinchat least for hand editing :/15:06
natefinchnot worst every, obviously... just frustrating when it tells me my file is invalid15:06
perrito666natefinch: missing the tab at the end?15:07
natefinchperrito666: does it need a tab at the end?15:07
perrito666yup15:07
perrito666iirc15:07
perrito6664 columns15:07
perrito666you have to love the 70s15:08
perrito666:p15:08
natefinchmaybe the newline at the end of the file is the problem?15:08
=== psivaa-afk is now known as psivaa
perrito666natefinch: also15:08
perrito666it needs only 4 column lines15:08
perrito666so15:08
perrito666if you lack the tab at the end and perhaps if you have a newline it might fail15:09
perrito666yes, it is a really sad set of limitations15:09
* perrito666 is going to screengrab restore test and release it as the next thriller movie hit15:14
perrito666sinzui: perritoec2 restored15:18
perrito666PASS15:18
perrito666although i would not vouch for the jenv error to be fixed, just covered15:19
perrito666(sinzui, In other news restore works again, ill pr)15:19
natefinchwhat are you supposed to do when rebase says it can't apply a revision?15:21
perrito666natefinch: fix the conflict15:21
perrito666then git add the conflicting file/s15:21
perrito666then rebase --continue15:21
perrito666iirc15:21
perrito666commit might be involved but i dont remember15:21
natefinchit doesn't tell me what the conflict is, though15:22
perrito666git status15:22
perrito666UU15:22
perrito666UU is the st of the conflicting file15:22
natefinchhow do I cancel out of a rebase if it opens up and I realize it has the wrong stuff in it?15:32
ericsnownatefinch: interactive?  don't you delete all the rev lines (I believe it says something like that)15:34
ericsnownatefinch: for normal rebase I believe it's something like git rebase --abort15:35
natefinchinteractive, yeah...15:35
ericsnownatefinch: it should say something in the comments there on what to do15:35
perrito666natefinch: what do you mean the wrong stuff?15:45
perrito666remember that it will replay old commtis15:45
natefinchperrito666: like, I do rebase -i HEAD~3 and what it brings up bears no relation to what I expect it to bring up, so I want to cancel out of it15:47
natefinchI tried to rebase my log rotate PR to squash it into a single commit.... and one of the commits I wanted to squash just won't show up15:48
natefinchI probably screwed up my branch with an earlier bad rebase.. I don't know15:48
natefinchThere's obviously some stuff about how git is working things that I don't understand.  It all went to hell after I merged from trunk to fix a conflict15:49
natefinchI think my mistake was actually merging from master, instead of doing the rebasey thing where my changes get plunked back on top15:50
perrito666natefinch: sounds to me like that should rebase your last 3 ommits15:52
natefinchrebase ~3 brings up like 100 commits15:52
natefinchI think it's bringing up all the commits that were merged15:52
natefinchfrom master15:53
natefinchbut it's too late, it's already merging as-is15:54
natefinchfinally got the tsv in working order15:54
perrito666natefinch: :|15:55
natefinchI've been wrestling with git for far too long to worry about having one or two extra commit lines in master15:55
perrito666my push hook complains of:15:56
perrito666environs/config/config.go:800: undefined: schema.UUID15:56
perrito666... I am pretty sure I was not even close15:56
perrito666does anyone else see that in master?15:56
natefinchgodeps?15:57
perrito666ah duh15:57
perrito666https://github.com/juju/juju/pull/40416:05
perrito666please review ppl fixes a blocker bug so its sort of important16:05
* perrito666 looks at mgz and natefinch 16:06
natefinchlooking16:07
natefinchcan you add the bug number to the description?16:07
natefinchoh nevermind16:07
natefinchin title16:07
natefinchnot that I can click it there16:07
natefinchI need a chrome extension that'll make lp:foo actually work.16:08
natefinchperrito666: what is return value 100?16:09
natefinchdang, I can't read today, nevermind16:09
bodie_what are the odds of getting an LGTM / LWTM on 399 today?16:15
bodie_it's a fairly simple jujuc addition for Actions to get passed args from the stateservice16:16
bodie_tests are a tad bit verbose but it's quite straightforward16:17
perrito666natefinch: you saw the comment above that?16:41
natefinchgiant regexes make for really shitty test failure messages16:50
mgzthat they do16:51
katconatefinch: i have a feeling i know exactly what code you're looking at16:56
natefinchcloud init16:57
katcowell nm. i ran into the same thing in the upstart stuff16:58
natefinchanywhere we are doing a giant regex against a script we write16:59
natefinchkatco: cloudinit writes upstart scripts, and yes, it's in that code17:01
katcooy... my condolences17:01
natefinchmgz: the cloudinit code currently does some finagling with the log files to "Ensure log files are properly protected" - chowning them and chmodding them17:02
natefinchmgz: I have a CL to use my log rolling package to roll the logs, which does not currently do the same thing17:03
mgznatefinch: when you do the rolling itself right? the inital log would still have correct owner/perms I'm guessing17:04
mgzyou probably just want to add a copy-owner-perms thing to your rotator and use that17:04
natefinchmgz: that's a really good idea, yeah17:05
mgzthough I do wonder why we're rolling our own on this, yet again...17:05
natefinchmgz: this was a package I wrote in my free time.  We could use logrotate, but that's just more external dependencies and setup.  Plus, then we'd need something else for windows machines.   Having a pure software solution is almost always better than adding dependencies17:08
katconatefinch: i think mgz might be referring to this: https://github.com/avelino/awesome-go#logging17:09
mgzwell, not if we have to go and get told by our users about thirty years of logrotate good practive after release...17:09
mgzbut it's your fun to be had :)17:09
natefinchthe main reason is that we'd have to find something else for Windows17:10
natefinchbut yes, I know how linux users like to complain that you don't use 1000 external utilities for something you can do easily in your own code.17:10
perrito666wow, full screen really does not work well with unity17:15
natefinchhow so?17:16
perrito666natefinch: well I have firefox in fscreen and every time I go to that desktop unity takes focus17:16
katconatefinch: hey just thinking about that a little... why not use the windows event logs? those have log rotation etc.17:16
katconatefinch: and it's the more canonical place for people to check for things17:16
natefinchkatco: I think of the event log as more of a place to write errors and problems, not just general logging17:18
katconatefinch: nah, it has an informational log type for a reason17:18
* natefinch wonders at katco's sudden knowledge of Windows subsystems.17:18
katcohaha, no! no windows work!17:19
natefinchhaha17:19
natefinchYou're safe, you're not on my team.. I can't delegate all my work to you the way I do to my team ;)17:19
katcolol17:20
perrito666hey, don't act as if we where not here :p17:20
natefinchI haven't ever used the windows event log that way, so I'm really not that familiar with it.17:20
katcogosh i am really getting mired in juju's test philosophy. i vacillate between whether we do functional style testing or unit testing.17:22
natefinch we do both, which I think is ok... but I think our functional tests tend to be overly broad and requiring way too much fragile setup17:23
perrito666why all rogpeppe mails get here duplicated?17:23
natefinchhaha17:23
katcoin a recent review, wallyworld mentioned that he wishes a test were more black-box to just test the side-effect we desire, but when i try and do that, i find that the underlying object is mocked away and won't give the desired side effect17:23
natefinchhe just emails from the wrong account all the time and has to resend from the right account17:23
perrito666natefinch: yet I get both17:24
katcoso as a new person, i'm left a bit confused... do i expand the mock to mock the side effect? but then isn't that just an invalid functional test? or do i switch to unit tests and test the interaction?17:24
bodie_katco, the input I've received from fwereade on that topic is that we need a pass and fail case actually integrating with the next level up or down, and to use mocks to exercise the error paths in the code to verify that they work as expected17:25
bodie_so the mocks aren't for checking that the code has the desired effect, but rather to check that the code itself behaves as expected17:26
bodie_I'm not sure if that answers your question, though17:27
katcobodie_: would you mind taking a few minutes to walk through a concrete example with me?17:27
katco(specifically the one i'm working on)17:27
perrito666bbl17:27
bodie_sure thing17:27
perrito666sinzui: https://github.com/juju/juju/pull/404 <-- you should see restore tests passing after this lands on Ci17:29
perrito666mgz: I need to leave for a moment now but I am pretty sure that the issue lies on the change to locking that tim added in https://github.com/juju/juju/commit/5b54fcbfc1a651c5e2435f13b2b479187cc5499f17:33
mgzcheckin'17:39
bodie_any chance I can get a review on 399 today?18:03
bodie_https://github.com/juju/juju/pull/399 -- relatively simple code, slightly verbose tests18:04
bodie_ask me anything :)18:04
natefinchbodie_: is this comment correct? ActionGetCommand implements the relation-get command.18:06
bodie_good catch, no18:07
bodie_fixed18:08
bodie_natefinch, addressed your query18:11
bodie_there, that's a bit cleaner18:13
bodie_natefinch, pushed update18:17
bodie_only reason I didn't comment all the exported bits was that they weren't commented in config-get -- I'll fix that as well18:17
bodie_there, that should be good.18:21
natefinchbodie_: thanks for the comment, that makes a ton more sense18:22
bodie_natefinch, sorry to waste your time there, I'll make sure I'm keeping aware of the obvious bits before grabbing review18:22
bodie_yeah, it's a little bit semantically funky.18:23
natefinchbodie_: are the leaf values always strings?18:25
bodie_the values might not be18:28
bodie_the keys should always be18:29
bodie_I just realized I think I need to add some test cases for bad args, or remove that logical branch from the test18:29
bodie_should be minor18:29
natefinchnegatives tests are always enlightening18:30
natefinchtests with non-string values would be good, too18:30
natefinchnot that I think there will be any problem... you're not really every touching the answer18:30
natefinchs/every/ever/18:31
perrito666ericsnow: in you opinion, is it worthy to build over your changes of juju restore cli?18:43
ericsnowperrito666: it's not a big change so probably not :)18:43
bodie_natefinch, poked those in there as well18:46
natefinchbodie_: looks good to me. I don't really know the actions spec to know if there's any errors in the logic, but the code looks solid enough as it is.18:50
bodie_the hole is that it's possible to have lists in the params map, with inner maps18:52
bodie_however, I think action-get key.innerkey.someList[2].anotherkey.somethingelse[3] is just ... pushing it18:53
natefinchso you need another case in the type switch for []interface{}?18:53
natefinchahh I see what you mean18:53
natefinchif someone wants a list, they can just make the keys to their map integers, and it basically works the same18:54
bodie_It's probably arguable either way.  for now I think this makes more sense than getting too fancy.18:54
natefinchbodie_: is there someone else who knows this stuff better than can review to make sure I haven't missed anything?  I feel like I don't really have enough context to give it the LGTM18:56
bodie_probably fwereade or mgz would be able to make a call18:57
bodie_I think it does what it does properly; I'm not totally certain it does everything it could need to do, though.18:57
bodie_but, that seems like functionality that can easily be added18:58
* perrito666 notices he never added a cli command for juju19:01
katcois there a clear example anywhere of how to utilize the simplestreams package to give you a url for an image?19:31
* TheMue comes nearer to IPv6 addressing and routing between LXC containers on different hosts.19:48
natefinchkatco: wallyworld knows the simplestreams well.... the rest of us, not so much19:51
katco=/19:52
perrito666katco: you are trying to get info from a dev on a friday afternoon :p19:53
katcohaha19:54
perrito666who I believe must have kids on holidays :p19:54
=== sebas538_ is now known as sebas5384
ericsnowfwereade: ping22:02
jcw4Simple PR https://github.com/juju/juju/pull/405 - PTAL22:16
bloodearnestheya all, I'm getting panics on juju set in 1.20.1.1, fyi. https://bugs.launchpad.net/juju-core/+bug/134882922:23
_mup_Bug #1348829: juju-core client panics with juju set empty string <juju-core:New> <https://launchpad.net/bugs/1348829>22:23
=== Beret- is now known as Beret
=== Ursinha_ is now known as Ursinha

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