Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
cloud-init.2495
cloud-init-no-user-lock-if-already-locked.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cloud-init-no-user-lock-if-already-locked.patch of Package cloud-init.2495
--- cloud-init-0.7.5/cloudinit/distros/__init__.py.orig 2014-09-16 11:00:52.192149797 +0200 +++ cloud-init-0.7.5/cloudinit/distros/__init__.py 2014-09-16 11:02:02.272874250 +0200 @@ -402,8 +402,11 @@ # about long names. util.subp(['passwd', '-l', name]) except Exception as e: - util.logexc(LOG, 'Failed to disable password for user %s', name) - raise e + if e.exit_code != 3: + util.logexc(LOG, 'Failed to disable password for user %s', name) + raise e + else: + util.logexc(LOG, 'Password access already locked for user %s', name) def set_passwd(self, user, passwd, hashed=False): pass_string = '%s:%s' % (user, passwd)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor