Skip to content

Commit

Permalink
salt.modules.bluez is now using __virtualname__
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Oct 17, 2013
1 parent d089e28 commit e7ef616
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion salt/modules/bluez.py
Expand Up @@ -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


Expand Down

0 comments on commit e7ef616

Please sign in to comment.