Skip to content

Commit

Permalink
Fix merge conflicts mistakes: Enable updating cluster when spark mast…
Browse files Browse the repository at this point in the history
…er is stable
  • Loading branch information
t-rufang committed Jul 18, 2018
1 parent 8b33485 commit f08c16d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public SparkServerlessClusterNode(@NotNull Node parent,
protected void refreshItems() throws AzureCmdException {
try {
cluster.get().toBlocking().singleOrDefault(cluster);
if (Optional.ofNullable(cluster.getWorkerState()).orElse("")
if (Optional.ofNullable(cluster.getMasterState()).orElse("")
.equals(SparkItemGroupState.STABLE.toString())) {
addAction("Update", new SparkServerlessUpdateAction(
this, cluster, SparkServerlessClusterOps.getInstance().getUpdateAction()));
Expand Down

0 comments on commit f08c16d

Please sign in to comment.