|
|
@ -718,7 +718,7 @@ class SunOS(User):
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
fields[1] = self.password
|
|
|
|
fields[1] = self.password
|
|
|
|
line = ':'.join(fields)
|
|
|
|
line = ':'.join(fields)
|
|
|
|
lines.append('{0}\n'.format(line))
|
|
|
|
lines.append('%s\n' % line)
|
|
|
|
open(self.SHADOWFILE, 'w+').writelines(lines)
|
|
|
|
open(self.SHADOWFILE, 'w+').writelines(lines)
|
|
|
|
except Exception, err:
|
|
|
|
except Exception, err:
|
|
|
|
self.module.fail_json(msg="failed to update users password: %s" % str(err))
|
|
|
|
self.module.fail_json(msg="failed to update users password: %s" % str(err))
|
|
|
@ -800,7 +800,7 @@ class SunOS(User):
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
fields[1] = self.password
|
|
|
|
fields[1] = self.password
|
|
|
|
line = ':'.join(fields)
|
|
|
|
line = ':'.join(fields)
|
|
|
|
lines.append('{0}\n'.format(line))
|
|
|
|
lines.append('%s\n' % line)
|
|
|
|
open(self.SHADOWFILE, 'w+').writelines(lines)
|
|
|
|
open(self.SHADOWFILE, 'w+').writelines(lines)
|
|
|
|
rc = 0
|
|
|
|
rc = 0
|
|
|
|
except Exception, err:
|
|
|
|
except Exception, err:
|
|
|
|