forked from ungleich-public/cdist
fix type and add fixme
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
e05c5e699c
commit
612fb4cb7b
2 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,7 @@ class Local(object):
|
||||||
self.log = logging.getLogger(self.target_host)
|
self.log = logging.getLogger(self.target_host)
|
||||||
|
|
||||||
# Setup file permissions using umask
|
# Setup file permissions using umask
|
||||||
os.umask(0o700)
|
os.umask(0o077)
|
||||||
|
|
||||||
def create_directories(self):
|
def create_directories(self):
|
||||||
self.mkdir(self.out_path)
|
self.mkdir(self.out_path)
|
||||||
|
|
|
@ -108,6 +108,7 @@ class Remote(object):
|
||||||
# Always call umask before actual call to ensure proper file permissions
|
# Always call umask before actual call to ensure proper file permissions
|
||||||
cmd.append("umask 077;")
|
cmd.append("umask 077;")
|
||||||
|
|
||||||
|
# FIXME: replace this by -o SendEnv name -o SendEnv name ... to ssh?
|
||||||
# can't pass environment to remote side, so prepend command with
|
# can't pass environment to remote side, so prepend command with
|
||||||
# variable declarations
|
# variable declarations
|
||||||
if env:
|
if env:
|
||||||
|
|
Loading…
Reference in a new issue