yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #91928
[Bug 1413788] Re: inconsistent parameter list in get_hostname method for subclasses of sources.DataSource
Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/2519
** Bug watch added: github.com/canonical/cloud-init/issues #2519
https://github.com/canonical/cloud-init/issues/2519
** Changed in: cloud-init
Status: Confirmed => Expired
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1413788
Title:
inconsistent parameter list in get_hostname method for subclasses of
sources.DataSource
Status in cloud-init:
Expired
Bug description:
The sources.DataSource class has method defined as:
def get_hostname(self, fqdn=False, resolve_ip=False)
The parameter list in the following subclasses of sources.DataSource is not consistent with this method (see [1] for details):
DataSourceDigitalOcean
DataSourceGCE
[1]
$ find cloudinit/sources/ -type f | xargs grep 'def get_hostname'
cloudinit/sources//init.py: def get_hostname(self, fqdn=False, resolve_ip=False):
cloudinit/sources//DataSourceCloudSigma.py: def get_hostname(self, fqdn=False, resolve_ip=False):
cloudinit/sources//DataSourceDigitalOcean.py: def get_hostname(self, fqdn=False):
cloudinit/sources//DataSourceGCE.py: def get_hostname(self, fqdn=False, _resolve_ip=False):
cloudinit/sources//DataSourceOpenNebula.py: def get_hostname(self, fqdn=False, resolve_ip=None):
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1413788/+subscriptions
References