Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions hackspace_mgmt/machine_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ def hello(hostname):

controller = controller_from_hostname(hostname)

response = {}

response["idle_timeout"] = controller.idle_timeout
response["idle_power_threshold"] = controller.idle_power_threshold

create_audit_log(
"access_control",
"wakeup",
Expand All @@ -261,7 +266,7 @@ def hello(hostname):
}
)

return {}
return response

@bp.route('/firmware_update')
def firmware_update():
Expand All @@ -273,4 +278,4 @@ def not_authorized_error(e):

@bp.errorhandler(404)
def not_found_error(e):
return {"unlocked": False}, 404
return {"unlocked": False}, 404