-
Notifications
You must be signed in to change notification settings - Fork 4
Use pull-secret API and ask for copy-paste #102
Conversation
String.Empty, | ||
String.Empty, | ||
String.Empty); | ||
|
||
if(configs == null) | ||
if (!pullsecret) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is not working as expected, the pull-secret prompt always appears when you click on start even when its already saved in the credential store
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the pull secret is not stored the api returns a 404 http status not found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have to check this, but this always returns false
? The idea is that an exception returns a default
typed result. I see that the 200, does not return any value, so this means the bool
type will therefore have no value.
return getResultsForBasicCommand<bool>(BasicCommands.PullSecret);
@anjannath did this work? else we have to take this into the next sprint |
@gbraad Now getting unhandled exceptions when clicking on start :(
|
Haven't been able to test/work on this. Defer to next sprint
|
@gbraad Will test this today |
|
@anjannnath now to decide what to do on the macOS side about the 'file' option: crc-org/tray-macos#120 |
Fixes: #99 and #100
Implemented according to: crc-org/crc#2561
Remaining discussion: crc-org/crc#2571 (what to do in case file is given)
When no pull-secret exists, a pullsecret dialog is shown. When pasted and confirmed, it is stored in the Credential Manager.
From Settings it is possible to change the pull-secret. Is stored when applied.