/srv/irclogs.ubuntu.com/2016/09/08/#cloud-init.txt

=== aps-sids is now known as aps
=== shardy is now known as shardy_mtg
smoserrharper, cpaelzer you convinced me that the copy was odd13:10
smoserhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/30513713:10
smoseri had originally added it to avoid updating the original if there were no "old" keys ... so i wouldnt delete things in 'needtoconvert' loop13:10
smoserbut since we modify the input in other places, the right thing would be to either change it wholesale (including in convert_to_v3_apt_format).13:11
smoserso, just going to drop the copy13:11
=== shardy_mtg is now known as shardy
cpaelzerok13:16
cpaelzerthat is what discussions are for13:16
cpaelzerare your tests still good with that?13:16
cpaelzersmoser: ^^13:16
cpaelzeror did you have to modify them13:16
smosercpaelzer, tests dont care.13:16
smoserand wrt your comment about my copy in the test... i had done that to avoid typing the same thing twice.13:17
smoserto be safe from the function i called changing the data that i passed in.13:17
smoserie, avoiding this bad test:13:17
smoserdef foo(mydict):13:17
smoser   mydict['a'] = '1'13:17
smoser  return mydict13:17
cpaelzergot it13:17
cpaelzercopy and make sure it (still) is the same13:18
smoserm = {'1': 2}13:18
smoserfoo(m)13:18
smoserself.assertEqual(m, foo(m))13:18
smoseror whatever.13:18
smoserright.13:18
smoserthe behavior of calling a function and it modifying a dictionary and returning that dictionary is odd.13:19
smoserbut for now, oh well.13:19
cpaelzerI still lack some python style badges - this is one that I have to still internalize13:22
rharpersmoser: heh13:32
=== rangerpbzzzz is now known as rangerpb
=== aps is now known as Guest78392
=== rangerpb is now known as rangerpbzzzz

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