Closed binary1230 closed 5 years ago
yea that's what's going on:
set_mode(name, mode)
if mode != salt.utils.files.normalize_mode(get_mode(name)):
ret['result'] = False
ret['comment'].append(
'Failed to change mode to {0}'.format(mode)
)
the solution I found that worked is to just explicitly set the 'mode' attribute to 0777 here, that was the only way to get it to stop complaining.
both myself and @msg4real are seeing this on windows, even after fixing all the other errors in #12
my working theory is: chmod 0644 on vboxfs (which shares windows file system into linux) allows you to set the file permission BUT won't actually change it. when you do this, the file permissions stay the same (0755), so I'm guessing that is what it means by "failed to change mode"
I can repro this manually like this:
So I think we'll probably just need to make the chmod stuff either not verify or not try and change when we're under windows.