Skip to content

Commit

Permalink
Avoid duplicate constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Feb 24, 2025
1 parent bc33640 commit c6704c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import static org.jdrupes.vmoperator.common.Constants.APP_NAME;
import static org.jdrupes.vmoperator.common.Constants.DATA_DISPLAY_PASSWORD;
import org.jdrupes.vmoperator.runner.qemu.commands.QmpCont;
import org.jdrupes.vmoperator.runner.qemu.commands.QmpReset;
import org.jdrupes.vmoperator.runner.qemu.events.ConfigureQemu;
Expand Down Expand Up @@ -311,8 +312,7 @@ public void onConfigurationUpdate(ConfigurationUpdate event) {

// Add some values from other sources to configuration
newConf.asOf = Instant.ofEpochSecond(configFile.lastModified());
Path dsPath
= configDir.resolve(DisplayController.DISPLAY_PASSWORD_FILE);
Path dsPath = configDir.resolve(DATA_DISPLAY_PASSWORD);
newConf.hasDisplayPassword = dsPath.toFile().canRead();

// Special actions for initial configuration (startup)
Expand Down

0 comments on commit c6704c8

Please sign in to comment.