mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
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:
parent
94dac0caf1
commit
4f44da9fae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user