Skip to content

After update to 2.7 and 5.2 get syntax error #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
imanolGOMI opened this issue Apr 8, 2025 · 0 comments
Open

After update to 2.7 and 5.2 get syntax error #135

imanolGOMI opened this issue Apr 8, 2025 · 0 comments

Comments

@imanolGOMI
Copy link

def run
  cpu = fetch_process_cpu_usage
  memory = fetch_process_memory_usage
  disk = fetch_disk_usage

  store_data({cpu:, memory:, disk:})
end

store_data({cpu:, memory:, disk:}) result in syntax error.

change to this is working

def run
  cpu = fetch_process_cpu_usage
  memory = fetch_process_memory_usage
  disk = fetch_disk_usage

  store_data({cpu: cpu, memory: memory, disk: disk})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant