change server_id grain to use __opts__['id']

This commit is contained in:
Thomas S Hatch 2012-04-07 12:04:26 -06:00
parent 268b8bffe6
commit 827f070c4e

View File

@ -597,4 +597,4 @@ def get_server_id():
'''
# Provides:
# server_id
return { 'server_id': abs(hash(socket.getfqdn()) % 2**31) }
return { 'server_id': abs(hash(__opts__['id']) % 2**31) }