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

Fixing device context generation and adding unit test #306

Merged
merged 2 commits into from
Aug 29, 2017

Conversation

AlexBulankou
Copy link
Contributor

Fixing #285

@@ -48,7 +48,7 @@ class Context {
private _loadDeviceContext() {
this.tags[this.keys.deviceId] = "";
this.tags[this.keys.cloudRoleInstance] = os && os.hostname();
this.tags[this.keys.deviceOSVersion] = os && os.type() + " " + os && os.release();
this.tags[this.keys.deviceOSVersion] = os && os.type() + " " + (os && os.release());
Copy link
Member

Choose a reason for hiding this comment

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

Nit: For clarity os && (os.type() + " " + os.release()); would be nicer

@AlexBulankou AlexBulankou merged commit 1658845 into develop Aug 29, 2017
@OsvaldoRosado OsvaldoRosado deleted the albulank/fixcontext branch October 23, 2018 18:19
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

Successfully merging this pull request may close these issues.

3 participants