Revision 9b87c2cf lib/hypervisor/hv_kvm.py
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
158 | 158 |
is not contained in the message |
159 | 159 |
|
160 | 160 |
""" |
161 |
|
|
162 |
if field_name in self.data: |
|
163 |
return self.data[field_name] |
|
164 |
|
|
165 |
return None |
|
161 |
return self.data.get(field_name, None) |
|
166 | 162 |
|
167 | 163 |
def __setitem__(self, field_name, field_value): |
168 | 164 |
"""Set the value of the required field_name to field_value. |
Also available in: Unified diff