Fixed wrong use of pymongo update

Change-Id: Id92d5d5acfedfc6236aab47844444aef06672c06
This commit is contained in:
aviau
2015-06-02 17:52:03 -04:00
parent 906542757c
commit f084ed90a3
15 changed files with 44 additions and 24 deletions

View File

@@ -22,7 +22,7 @@ class Host(types.Base):
host_name = wsme.wsattr(wtypes.text, mandatory=True)
"""The name of the host"""
address = wsme.wsattr(wtypes.text, mandatory=True)
address = wsme.wsattr(wtypes.text, mandatory=False)
"""The address of the host. Normally, this is an IP address."""
max_check_attempts = wsme.wsattr(int, mandatory=False, default=3)