13039 various install/update operations can traceback if nothing to do
authorShawn Walker <srw@sun.com>
Thu, 03 Dec 2009 18:22:02 -0600
changeset 1543 223040b72119
parent 1542 c97893ed7cd4
child 1544 e0ce5081236a
13039 various install/update operations can traceback if nothing to do
src/client.py
--- a/src/client.py	Thu Dec 03 15:25:43 2009 -0800
+++ b/src/client.py	Thu Dec 03 18:22:02 2009 -0600
@@ -767,6 +767,7 @@
         if api_inst == None:
                 return EXIT_OOPS
 
+        stuff_to_do = None
         try:
                 stuff_to_do = api_inst.plan_change_varcets(variants, facets=None,
                     noexecute=noexecute, verbose=verbose, be_name=be_name)
@@ -853,6 +854,7 @@
         if api_inst == None:
                 return EXIT_OOPS
 
+        stuff_to_do = None
         try:
                 stuff_to_do = api_inst.plan_change_varcets(variants=None, 
                     facets=facets, noexecute=noexecute, verbose=verbose,
@@ -922,6 +924,7 @@
         if api_inst == None:
                 return EXIT_OOPS
 
+        stuff_to_do = opensolaris_image = None
         try:
                 stuff_to_do, opensolaris_image = \
                     api_inst.plan_update_all(sys.argv[0], refresh_catalogs,
@@ -999,6 +1002,7 @@
         if api_inst == None:
                 return EXIT_OOPS
 
+        stuff_to_do = None
         try:
                 stuff_to_do = api_inst.plan_install(pargs,
                     refresh_catalogs, noexecute, verbose=verbose,