7173757 traceback if manifest found to be invalid when updating base service of alias
authorSusan Sohn <susan.sohn@oracle.com>
Tue, 05 Jun 2012 15:31:23 -0700
changeset 1702 530af2366fd7
parent 1701 9fdc47d06e9f
child 1703 4b4182b9a404
7173757 traceback if manifest found to be invalid when updating base service of alias
usr/src/cmd/installadm/service.py
--- a/usr/src/cmd/installadm/service.py	Tue Jun 05 15:26:49 2012 -0700
+++ b/usr/src/cmd/installadm/service.py	Tue Jun 05 15:31:23 2012 -0700
@@ -904,16 +904,18 @@
         # when adding to this function.
         self._image = None
 
+        valid_svc = True
         try:
             self.check_valid()
         except InvalidServiceError:
-            print >> sys.stderr, cw(_("\nOne or more of this alias' manifests "
-                                      "or profiles is no longer valid. This "
-                                      "service will be disabled until they "
-                                      "have been removed or fixed.\n"))
+            valid_svc = False
+            print >> sys.stderr, cw(_("\nOne or more of the manifests or "
+                "profiles for '%s' is no longer valid. This service will be "
+                "disabled until they have been removed or fixed.\n") %
+                self.name)
 
         # Enable the alias to pick up the new image
-        if was_mounted:
+        if valid_svc and was_mounted:
             self.enable()
 
         # Configure DHCP for this service