diff --git a/salt/modules/uptime.py b/salt/modules/uptime.py index e13ca9e8f1..ba53ea40d7 100644 --- a/salt/modules/uptime.py +++ b/salt/modules/uptime.py @@ -19,6 +19,7 @@ from salt.exceptions import CommandExecutionError log = logging.getLogger(__name__) + def __virtual__(): ''' Only load this module if the requests python module is available diff --git a/salt/states/uptime.py b/salt/states/uptime.py index 02f43b7b46..68fe168b12 100644 --- a/salt/states/uptime.py +++ b/salt/states/uptime.py @@ -19,7 +19,7 @@ Bootstrap. .. code-block:: yaml uptime: - url: "http://uptime-url.example.org" + application_url: "http://uptime-url.example.org" Example: @@ -33,6 +33,7 @@ Example: ''' + def __virtual__(): ''' Only load if the uptime module is present