7173757 traceback if manifest found to be invalid when updating base service of alias
--- 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