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

Do not provide a default Pelion host address. #9635

Merged
merged 1 commit into from
Feb 15, 2019

Conversation

bridadan
Copy link
Contributor

@bridadan bridadan commented Feb 6, 2019

Description

This moves the default pelion host address to be assigned by the cloud
sdk. It also cleans up the logic a bit to be shorter.

This pairs with ARMmbed/mbed-cli#840, though they aren't dependent on one other.

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@theotherjimmy

@ciarmcom ciarmcom requested review from theotherjimmy and a team February 6, 2019 22:00
@ciarmcom
Copy link
Member

ciarmcom commented Feb 6, 2019

@bridadan, thank you for your changes.
@theotherjimmy @ARMmbed/mbed-os-tools @ARMmbed/mbed-os-maintainers please review.

@bridadan
Copy link
Contributor Author

bridadan commented Feb 7, 2019

@ARMmbed/mbed-os-maintainers I'm reevaluating the use of the environment variables here, can you please hold off on CI and merging this for now?

This moves the default pelion host address to be assigned by the cloud
sdk. It also cleans up the logic a bit to be shorter.
@bridadan
Copy link
Contributor Author

Ok I'm happy with this now. Now we let the Cloud SDK library handle all of the environment variables. If we catch an exception when passing the config to the Cloud SDK, it means and API key wasn't supplied, so we catch the original exception and make the message a bit clearer with a call to action (mbed config ...).

@aashishc1988 could you review this change? It's a follow up to your PR here: ARMmbed/mbed-cli#838

This should fix #8144 as well as IOTCORE-867.

Copy link
Contributor

@aashishc1988 aashishc1988 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@cmonr
Copy link
Contributor

cmonr commented Feb 11, 2019

CI started while we wait on the primarily requested reviewer.

@mbed-ci
Copy link

mbed-ci commented Feb 12, 2019

Test run: SUCCESS

Summary: 12 of 12 test jobs passed
Build number : 1
Build artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants