utils.thin: os.getcwd(), not os.cwd()

************* Module salt.utils.thin
E1101: 48,20:gen_thin: Module 'os' has no 'cwd' member
This commit is contained in:
Chris Rebert 2013-07-20 23:03:05 -07:00
parent 94dac0caf1
commit 4f44da9fae

View File

@ -45,7 +45,7 @@ def gen_thin(cachedir):
os.path.dirname(yaml.__file__),
]
with tarfile.open(thintar, 'w:gz') as tfp:
start_dir = os.cwd()
start_dir = os.getcwd()
for top in tops:
os.chdir(os.path.dirname(top))
base = os.path.basename(top)