← Back to team overview

cloud-init-dev team mailing list archive

Re: [Merge] lp:~rjschwei/cloud-init/initcmdGetter into lp:cloud-init

 

I'm slightly confused here, why is this offering anything that classes couldn't already do by overriding the 'init_cmd' class variable with there own instance specific version.

>>> class A(object):
...   b = 'c'
... 
>>> 
>>> class D(A):
...   def __init__(self):
...      self.b = 'd'
... 
>>> 
>>> a = A()
>>> a.b
'c'
>>> d = D()
>>> d.b
'd'

-- 
https://code.launchpad.net/~rjschwei/cloud-init/initcmdGetter/+merge/224345
Your team cloud init development team is requested to review the proposed merge of lp:~rjschwei/cloud-init/initcmdGetter into lp:cloud-init.


References