diff options
author | David Cantrell <dcantrell@redhat.com> | 2007-05-22 20:09:34 +0000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2007-05-22 20:09:34 +0000 |
commit | 4c71b84432093a8d45df9525f4362c2d63806881 (patch) | |
tree | a39a9a8e500028f7d5ee2c58988508bfc3cd546e /isys/isys.py | |
parent | 1380f13f0dad0108b8ed6ac02e249f53fb43156b (diff) | |
download | anaconda-4c71b84432093a8d45df9525f4362c2d63806881.tar.gz anaconda-4c71b84432093a8d45df9525f4362c2d63806881.tar.xz anaconda-4c71b84432093a8d45df9525f4362c2d63806881.zip |
* isys/isys.py: If klass is None, set to empty string. Always send
klass to doDhcpNetDevice.
* isys/isys.c: Do not segfault (#240804).
Diffstat (limited to 'isys/isys.py')
-rw-r--r-- | isys/isys.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/isys/isys.py b/isys/isys.py index 892b0e764..4aeea2751 100644 --- a/isys/isys.py +++ b/isys/isys.py @@ -679,10 +679,10 @@ def dhcpNetDevice(device): else: v6method = 'manual' - if klass is not None: - return _isys.dhcpnetdevice(devname, v4, v4method, v6, v6method, klass) - else: - return _isys.dhcpnetdevice(devname, v4, v4method, v6, v6method) + if klass is None: + klass = '' + + return _isys.dhcpnetdevice(devname, v4, v4method, v6, v6method, klass) def readXFSLabel_int(device): try: |