Fix linux path to hosts

This commit is contained in:
twangboy 2016-07-26 15:50:05 -06:00
parent fb673a4f56
commit 15a7e98563

View File

@ -31,7 +31,7 @@ if salt.utils.is_windows():
_HOSTS_FILE = os.path.join(
os.environ['SystemRoot'], 'System32', 'drivers', 'etc', 'hosts')
else:
_HOSTS_FILE = os.path.join('etc', 'hosts')
_HOSTS_FILE = os.path.join('/', 'etc', 'hosts')
log = logging.getLogger(__name__)