Univention Bugzilla – Attachment 5887 Details for
Bug 34642
umc-command returns ill-defined exit status
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix_umc_command_returncode.patch
fix_umc_command_returncode.patch (text/plain), 1.13 KB, created by
Arvid Requate
on 2014-04-24 19:17:51 CEST
(
hide
)
Description:
fix_umc_command_returncode.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2014-04-24 19:17:51 CEST
Size:
1.13 KB
patch
obsolete
>Index: univention-management-console/scripts/univention-management-console-client >=================================================================== >--- univention-management-console/scripts/univention-management-console-client (Revision 49594) >+++ univention-management-console/scripts/univention-management-console-client (Arbeitskopie) >@@ -146,7 +146,7 @@ > self.__finished = datetime.datetime.now() > self.print_timing( msg ) > if self._options.quiet: >- raise ClientExit( msg.status - 200 ) >+ raise ClientExit( msg.status ) > print 'Response: %s' % msg.command > print ' data length : %4d' % len( str( msg ) ) > print ' message length: %4d' % msg._length >@@ -176,7 +176,7 @@ > else: > print ' RESULT : %s' % result > if msg.status is not None: >- raise ClientExit( msg.status - 200 ) >+ raise ClientExit( msg.status ) > else: > print 'BODY : %s' % str( msg.body ) > raise ClientExit() >@@ -273,6 +273,8 @@ > exitcode = int( exit.args[ 0 ] ) > if exitcode == 200: > exitcode = 0 >+ else: >+ exitcode = 1 ## dooh, sys.exit returns a short, mapping 400 to 144 > sys.exit( exitcode ) > sys.exit( 0 ) >
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
Actions:
View
|
Diff
Attachments on
bug 34642
:
5886
| 5887