From 86fb18047eeddb5c4d3950ffaa6927ddfba90565 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 16 Jun 2012 08:53:09 -0700 Subject: 1. Remove path function, since we have a path class 2. Be explict with file perms (even though its duplicated) --- cloudinit/distros/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cloudinit') 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: -- cgit v1.2.3