FreeBSD Bugzilla – Attachment 181831 Details for
Bug 218694
sysutils/py-salt: Add patch to fix salt.modules.pw_user.chloginclass
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to make salt.modules.pw_user.get_loginclass return string rather than dict
salt.diff (text/plain), 1.29 KB, created by
Ben Woods
on 2017-04-17 04:42:53 UTC
(
hide
)
Description:
Patch to make salt.modules.pw_user.get_loginclass return string rather than dict
Filename:
MIME Type:
Creator:
Ben Woods
Created:
2017-04-17 04:42:53 UTC
Size:
1.29 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 438674) >+++ Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= salt > PORTVERSION= 2016.11.3 >+PORTREVISION= 1 > CATEGORIES= sysutils python > MASTER_SITES= CHEESESHOP > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >Index: files/patch-salt_modules_pw__user.py >=================================================================== >--- files/patch-salt_modules_pw__user.py (nonexistent) >+++ files/patch-salt_modules_pw__user.py (working copy) >@@ -0,0 +1,11 @@ >+--- salt/modules/pw_user.py.orig 2017-04-17 04:36:14 UTC >++++ salt/modules/pw_user.py >+@@ -475,7 +475,7 @@ def get_loginclass(name): >+ userinfo = __salt__['cmd.run_stdout'](['pw', 'usershow', '-n', name]) >+ userinfo = userinfo.split(':') >+ >+- return {'loginclass': userinfo[4] if len(userinfo) == 10 else ''} >++ return userinfo[4] if len(userinfo) == 10 else '' >+ >+ >+ def list_groups(name): > >Property changes on: files/patch-salt_modules_pw__user.py >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
woodsb02
:
maintainer-approval?
(
christer.edwards
)
Actions:
View
|
Diff
Attachments on
bug 218694
: 181831