5907 api info needs to return reboot required info
authorPadraig O'Briain <padraig.obriain@oracle.com>
Tue, 27 Apr 2010 08:08:43 +0100
changeset 1877 3bdaef023cdb
parent 1876 c3cb39529a82
child 1878 badde6b7111b
5907 api info needs to return reboot required info
src/modules/client/api.py
--- a/src/modules/client/api.py	Mon Apr 26 14:41:56 2010 +0100
+++ b/src/modules/client/api.py	Tue Apr 27 08:08:43 2010 +0100
@@ -2725,6 +2725,13 @@
                         if pfmri:
                                 break
 
+        @property
+        def reboot_needed(self):
+                """A boolean value indicating that execution of the plan will
+                require a restart of the system to take effect if the target
+                image is an existing boot environment."""
+                return self.__plan.reboot_needed()
+
 def image_create(pkg_client_name, version_id, root, imgtype, is_zone,
     cancel_state_callable=None, facets=misc.EmptyDict, force=False,
     mirrors=misc.EmptyI, origins=misc.EmptyI, prefix=None, refresh_allowed=True,