~harlowja/cloud-init/group-dict-fix

« back to all changes in this revision

Viewing changes to cloudinit/distros/__init__.py

  • Committer: Joshua Harlow
  • Date: 2012-11-09 22:37:21 UTC
  • mfrom: (702.2.2 cloud-init)
  • Revision ID: harlowja@yahoo-inc.com-20121109223721-tq10b450d0n0l79v
Fix the fqdn/hostname case for rhel and ubuntu
where rhel uses the fqdn for its config while
ubuntu uses the short hostname.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        return self._cfg.get(opt_name, default)
59
59
 
60
60
    @abc.abstractmethod
61
 
    def set_hostname(self, hostname):
 
61
    def set_hostname(self, hostname, fqdn=None):
62
62
        raise NotImplementedError()
63
63
 
64
64
    @abc.abstractmethod
65
 
    def update_hostname(self, hostname, prev_hostname_fn):
 
65
    def update_hostname(self, hostname, fqdn, prev_hostname_fn):
66
66
        raise NotImplementedError()
67
67
 
68
68
    @abc.abstractmethod