diff --git a/salt/modules/bluez.py b/salt/modules/bluez.py index 24a7eaf79681..bf932e5a5db5 100644 --- a/salt/modules/bluez.py +++ b/salt/modules/bluez.py @@ -29,13 +29,16 @@ 'address_': 'address' } +# Define the module's virtual name +__virtualname__ = 'bluetooth' + def __virtual__(): ''' Only load the module if bluetooth is installed ''' if HAS_PYBLUEZ: - return 'bluetooth' + return __virtualname__ return False