Use __func_alias__

This commit is contained in:
Mike Place 2015-01-09 15:03:44 -07:00
parent b5c0dbe0ed
commit 1b78f4069f
2 changed files with 4 additions and 2 deletions

View File

@ -5,5 +5,4 @@ Salt Release Notes - Codename Beryllium
JBoss 7 State
=============
- Renamed ``reload`` function to ``reload_jboss``
- Remove unused argument ``timeout`` in jboss7.status

View File

@ -24,6 +24,9 @@ import re
import logging
from salt.utils import dictdiffer
__func_alias__ = {
'reload_': 'reload
}
log = logging.getLogger(__name__)
@ -71,7 +74,7 @@ def stop_server(jboss_config):
raise Exception('''Cannot handle error, return code={retcode}, stdout='{stdout}', stderr='{stderr}' '''.format(**shutdown_result))
def reload_jboss(jboss_config):
def reload_(jboss_config):
'''
Reload running jboss instance