6ce22be744
the old code to eventually create an api key on a satellite had some issues. namely, there were some ignored errors, swallowed errors, incorrect returns of nil errors when there should have been an error, and it did not handle working against an already existing database. this commit fixes the above issues and organizes the code into a set of methods performing individual steps rather than one big function. it adds retries and attempts to get existing values instead of creating them when possible, which means that it will work if the values already exist. additionally, it removes the 3 second sleep in favor of a bounded retry loop with a small sleep which improves startup times. Change-Id: I4de04659e5a62dd3f675fbf3c76f3311c410a03e |
||
---|---|---|
.. | ||
cancelable.go | ||
console.go | ||
main.go | ||
network.go | ||
prefix_test.go | ||
prefix.go | ||
process.go |