mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-28 14:50:14 +03:00
Fix pylint error "Line too long" (:144) in gpupdate
This commit fixes the following error: ``` C: 90, 0: Line too long (144/100) (line-too-long) ```
This commit is contained in:
parent
fbb6e8b2c8
commit
f5d2c6c3bc
@ -78,7 +78,7 @@ def runner_factory(args):
|
||||
username = None
|
||||
logstring = (
|
||||
'Unable to perform gpupdate for non-existent user {},'
|
||||
'will update machine settings'
|
||||
' will update machine settings'
|
||||
)
|
||||
logging.error(logstring.format(args.user))
|
||||
else:
|
||||
@ -87,7 +87,11 @@ def runner_factory(args):
|
||||
if args.user:
|
||||
username = pwd.getpwuid(os.getuid()).pw_name
|
||||
if args.user != username:
|
||||
logging.error('Unable to perform gpupdate for {} with current permissions, will update current user settings'.format(args.user))
|
||||
logstring = (
|
||||
'Unable to perform gpupdate for {} with current'
|
||||
' permissions, will update current user settings'
|
||||
)
|
||||
logging.error(logstring.format(args.user))
|
||||
|
||||
if is_oddjobd_gpupdate_accessible():
|
||||
logging.debug('Starting gpupdate via D-Bus')
|
||||
|
Loading…
x
Reference in New Issue
Block a user