get_eth_info: Added standard exceptions. Rewrote the device check to use is_device. Only returns once instead of four times. Throws exceptions instead. Uses spawn instead of getstatusoutput. get_value_from_config: Uses spawn now. added exception handler spawn: folded exitstatus into it. throws exceptions if there is a problem with the run command. get_uri: handles spawn exceptions. uses exceptions changed 'file' to 'r_file' due to 'file' being a reserved word in 2.4 ping: uses is_hostname to validate spawn_bash: added a exception handler still returns status set_default_route: added a exception handler set_ip: added an exception handler Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 57616 [details, diff] GLIUtility.py
Created attachment 57617 [details, diff] Fixed some problems found by pychecker.
Created attachment 57627 [details, diff] GLIUtility.py Made the exceptions more verbose as suggested by antarus.
Created attachment 58147 [details, diff] GLIUtility.py.patch This is the final version of the rewrite.
Created attachment 58148 [details, diff] SimpleXMLParser.py.patch Cleans up the exception code to use GLIException.
*** This bug has been marked as a duplicate of 91761 ***
Moving to Release Media/Installer.