Skip to content

Commit

Permalink
fix docker instance setting
Browse files Browse the repository at this point in the history
  • Loading branch information
datomo committed Oct 27, 2023
1 parent c65d348 commit 9cb266b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static List<AbstractAdapterSetting> getAllSettings( Class<? extends Adapt
List<AbstractAdapterSetting> settings = new ArrayList<>( AbstractAdapterSetting.fromAnnotations( clazz.getAnnotations(), properties ) );
if ( Arrays.stream( properties.usedModes() ).anyMatch( m -> m == DeployMode.DOCKER ) ) {
String instanceId = DockerManager.getInstance().getDockerInstances().keySet().stream().findFirst().orElse( 0 ).toString();
settings.add( new AbstractAdapterSettingList( "instanceId", false, null, true, false, Arrays.stream( properties.usedModes() ).map( DeployMode::getName ).collect( Collectors.toList() ), List.of( DeploySetting.DOCKER ), instanceId, 0 ) );
settings.add( new AbstractAdapterSettingList( "instanceId", false, null, true, false, DockerManager.getInstance().getDockerInstances().keySet().stream().map( Object::toString ).collect( Collectors.toList() ), List.of( DeploySetting.DOCKER ), instanceId, 0 ) );
}
return settings;
}
Expand Down

0 comments on commit 9cb266b

Please sign in to comment.