Avoid duplicate constants.
This commit is contained in:
parent
bc33640c98
commit
c6704c886f
1 changed files with 2 additions and 2 deletions
|
|
@ -56,6 +56,7 @@ import org.apache.commons.cli.DefaultParser;
|
||||||
import org.apache.commons.cli.Option;
|
import org.apache.commons.cli.Option;
|
||||||
import org.apache.commons.cli.Options;
|
import org.apache.commons.cli.Options;
|
||||||
import static org.jdrupes.vmoperator.common.Constants.APP_NAME;
|
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.QmpCont;
|
||||||
import org.jdrupes.vmoperator.runner.qemu.commands.QmpReset;
|
import org.jdrupes.vmoperator.runner.qemu.commands.QmpReset;
|
||||||
import org.jdrupes.vmoperator.runner.qemu.events.ConfigureQemu;
|
import org.jdrupes.vmoperator.runner.qemu.events.ConfigureQemu;
|
||||||
|
|
@ -311,8 +312,7 @@ public class Runner extends Component {
|
||||||
|
|
||||||
// Add some values from other sources to configuration
|
// Add some values from other sources to configuration
|
||||||
newConf.asOf = Instant.ofEpochSecond(configFile.lastModified());
|
newConf.asOf = Instant.ofEpochSecond(configFile.lastModified());
|
||||||
Path dsPath
|
Path dsPath = configDir.resolve(DATA_DISPLAY_PASSWORD);
|
||||||
= configDir.resolve(DisplayController.DISPLAY_PASSWORD_FILE);
|
|
||||||
newConf.hasDisplayPassword = dsPath.toFile().canRead();
|
newConf.hasDisplayPassword = dsPath.toFile().canRead();
|
||||||
|
|
||||||
// Special actions for initial configuration (startup)
|
// Special actions for initial configuration (startup)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue