Add node messages to node get (#836)

This exposes the node commands that have yet to be processed by the node.  Example use case:  The SDK can now ask "has this node installed my SSH key"
This commit is contained in:
bmc-msft
2021-04-26 16:14:58 -04:00
committed by GitHub
parent 541e745199
commit ced21b2ea3
3 changed files with 29 additions and 25 deletions

View File

@ -157,7 +157,7 @@ class Node(BASE_NODE, ORMMixin):
return ("pool_name", "machine_id")
def save_exclude(self) -> Optional[MappingIntStrAny]:
return {"tasks": ...}
return {"tasks": ..., "messages": ...}
def telemetry_include(self) -> Optional[MappingIntStrAny]:
return {