diff options
author | Marco Morais <marco.em.morais@gmail.com> | 2015-01-22 22:25:49 -0800 |
---|---|---|
committer | Marco Morais <marco.em.morais@gmail.com> | 2015-01-22 22:25:49 -0800 |
commit | 09e81d572d8461d8546f66eacd005bf3c9ae0e39 (patch) | |
tree | e14e20e0407d49010edfd5268fb1111452c991c6 /cloudinit/sources | |
parent | 78915c97c18d678db10e0fde0d9306823c5f4610 (diff) | |
download | vyos-cloud-init-09e81d572d8461d8546f66eacd005bf3c9ae0e39.tar.gz vyos-cloud-init-09e81d572d8461d8546f66eacd005bf3c9ae0e39.zip |
Make parameter list for get_hostname method consistent
The sources.DataSource class has method defined as:
def get_hostname(self, fqdn=False, resolve_ip=False)
Make the parameter list for this method in DataSourceDigitalOcean
and DataSourceGCE consistent with superclass sources.DataSource.
Diffstat (limited to 'cloudinit/sources')
-rw-r--r-- | cloudinit/sources/DataSourceDigitalOcean.py | 2 | ||||
-rw-r--r-- | cloudinit/sources/DataSourceGCE.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/sources/DataSourceDigitalOcean.py b/cloudinit/sources/DataSourceDigitalOcean.py index 8f27ee89..fec9db4b 100644 --- a/cloudinit/sources/DataSourceDigitalOcean.py +++ b/cloudinit/sources/DataSourceDigitalOcean.py @@ -84,7 +84,7 @@ class DataSourceDigitalOcean(sources.DataSource): def get_instance_id(self): return self.metadata['id'] - def get_hostname(self, fqdn=False): + def get_hostname(self, fqdn=False, resolve_ip=False): return self.metadata['hostname'] def get_package_mirror_info(self): diff --git a/cloudinit/sources/DataSourceGCE.py b/cloudinit/sources/DataSourceGCE.py index 2cf8fdcd..6936c74e 100644 --- a/cloudinit/sources/DataSourceGCE.py +++ b/cloudinit/sources/DataSourceGCE.py @@ -126,7 +126,7 @@ class DataSourceGCE(sources.DataSource): def get_public_ssh_keys(self): return self.metadata['public-keys'] - def get_hostname(self, fqdn=False, _resolve_ip=False): + def get_hostname(self, fqdn=False, resolve_ip=False): # GCE has long FDQN's and has asked for short hostnames return self.metadata['local-hostname'].split('.')[0] |