Skip to content
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

Repetitive copy-pasting of IDs #23

Open
pranasziaukas opened this issue Jun 9, 2020 · 0 comments
Open

Repetitive copy-pasting of IDs #23

pranasziaukas opened this issue Jun 9, 2020 · 0 comments

Comments

@pranasziaukas
Copy link

Everyone reproducing the masterclass diligently has to edit commands a bunch of times and insert their otherwise static device and application IDs a bunch of times.
Some of the entries are more cryptic than others. For example, at the start of section 5.3 after copy-pasting

curl -X GET 'https://api.balena-cloud.com/v5/device?$filter=belongs_to__application%20eq%20%271550049%27%20and%20is_online%20eq%20true' -H "Authorization: Bearer $API_TOKEN" -H 'Content-Type: application/json'

one has to delete 1550049 and replace it with their own ID obtained from the result of balena apps | grep FleetMasterclass.

I am wondering whether it adds any value to the masterclass.

Maybe we could store static IDs in environment variables just like it's done with the token API_TOKEN=<YOUR_API_TOKEN>.

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