Bug 31710 - Syntax error in network.py
Syntax error in network.py
Status: RESOLVED INVALID
Product: UCS
Classification: Unclassified
Component: UMC - Basic settings
UCS 3.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-11 12:47 CEST by Alexander Kläser
Modified: 2013-06-11 14:13 CEST (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Troubleshooting
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2013-06-11 12:47:54 CEST
From Bug 30878, Comment 1:
> On a UCS 3.2 test instance I got the following error during system setup
> appliance:
> 
> __MSG__:Processing triggers for python-support ...
> __MSG__:Running post-installation trigger python-support
> __STEP__:300.0
> __MSG__:Compiling
> /usr/lib/pymodules/python2.6/univention/management/console/modules/setup/
> network.py ...
> __MSG__:SyntaxError: ('invalid syntax',
> ('/usr/lib/pymodules/python2.6/univention/management/console/modules/setup/
> network.py', 72, 13, '\t\t\t\t\tall_ip4s.add(ip4[0])\n'))
> __MSG__:
> __MSG__:Fetched 0 B in 0s (0 B/s)

The problem is a missing ')' in line 71:

> raise ValueError('%s: Invalid IPv4 address %r' % (device.name, ip4[0])

This could lead to possible errors when setting/changing IP addresses. Otherwise I am not sure about side effects.
Comment 1 Alexander Kläser univentionstaff 2013-06-11 14:13:27 CEST
My error, error occurred during development of UCS 3.2.