[PATCH] [TEST] For NetworkPoolRASDs, be sure to return a value in all cases

# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1247504645 25200 # Node ID 3a4e961d8628698392edcc1f0943281f219ff658 # Parent 66daf8a0a7da34f4135e83cf9398ece22bb2738b [TEST] For NetworkPoolRASDs, be sure to return a value in all cases If both if conditions aren't met, we still need to return a default value. Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r 66daf8a0a7da -r 3a4e961d8628 suites/libvirt-cim/lib/XenKvmLib/rasd.py --- a/suites/libvirt-cim/lib/XenKvmLib/rasd.py Wed Jul 01 11:23:00 2009 -0700 +++ b/suites/libvirt-cim/lib/XenKvmLib/rasd.py Mon Jul 13 10:04:05 2009 -0700 @@ -368,6 +368,8 @@ return exp_base_num * dev_types * net_types + return exp_base_num + def get_exp_template_rasd_len(virt, ip, id): curr_cim_rev, changeset = get_provider_version(virt, ip)

+1 for me. -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik@linux.vnet.ibm.com
participants (2)
-
Deepti B Kalakeri
-
Kaitlin Rupert