diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 08:53:09 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 08:53:09 -0700 |
commit | 86fb18047eeddb5c4d3950ffaa6927ddfba90565 (patch) | |
tree | 64d0a87a7119d4029f3d2d7ccec2e887b92de074 /cloudinit/distros | |
parent | 838bb0650819f2a1e13312e627b5f4a949fe802d (diff) | |
download | vyos-cloud-init-86fb18047eeddb5c4d3950ffaa6927ddfba90565.tar.gz vyos-cloud-init-86fb18047eeddb5c4d3950ffaa6927ddfba90565.zip |
1. Remove path function, since we have a path class
2. Be explict with file perms (even though its duplicated)
Diffstat (limited to 'cloudinit/distros')
-rw-r--r-- | cloudinit/distros/__init__.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py index fd4c70c1..e85e702e 100644 --- a/cloudinit/distros/__init__.py +++ b/cloudinit/distros/__init__.py @@ -75,10 +75,6 @@ class Distro(object): def get_package_mirror(self): return self.get_option('package_mirror') - def get_paths(self): - paths = self.get_option("paths") or {} - return copy.deepcopy(paths) - def apply_network(self, settings, bring_up=True): # Write it out self._write_network(settings) @@ -127,7 +123,7 @@ class Distro(object): need_write = True if need_write: contents = new_etchosts.getvalue() - util.write_file("/etc/hosts", contents) + util.write_file("/etc/hosts", contents, mode=0644) def _interface_action(self, action): if action not in IFACE_ACTIONS: |