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

Fix service uninstall when the env var is null in marathon json #719

Merged
merged 1 commit into from
Feb 23, 2018

Conversation

takirala
Copy link
Contributor

Address DCOS-21374

@takirala takirala self-assigned this Feb 23, 2018
appJson.add(
envJsonField,
Json.fromJsonObject(
appJson(envJsonField).get.asObject.get.add(SdkUninstallEnvvar, Json.fromString("true"))
appJson(envJsonField)
.map(_.asObject.get)
Copy link
Contributor

Choose a reason for hiding this comment

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

.flatMap(_.asObject). We should feel uncomfortable when we see a .get in the code. :)

Copy link
Contributor

@jsancio jsancio left a comment

Choose a reason for hiding this comment

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

LGTM.

@takirala takirala merged commit e19be26 into master Feb 23, 2018
@takirala takirala deleted the fix-uninstaller branch February 23, 2018 22:05
takirala added a commit that referenced this pull request Feb 26, 2018
* Handle the case when the env var is null in marathon json during uninstall (#719)
* Bump version to 0.5.2
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.

2 participants