mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
salt.modules.smartos_mdata should load if mdata-list is available, except on the global zone
This commit is contained in:
parent
486be7c78c
commit
6e7e206827
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
Module for managaging metadata on SmartOS
|
||||
Module for managaging metadata in SmartOS Zones
|
||||
|
||||
.. versionadded:: Boron
|
||||
|
||||
@ -67,7 +67,7 @@ def __virtual__():
|
||||
'''
|
||||
Provides mdata only on SmartOS
|
||||
'''
|
||||
if salt.utils.is_smartos_zone() and _check_mdata_list():
|
||||
if _check_mdata_list() and not salt.utils.is_smartos_globalzone():
|
||||
return __virtualname__
|
||||
return (
|
||||
False,
|
||||
|
Loading…
Reference in New Issue
Block a user