@@ -39,7 +39,7 @@ public void readConfig() throws AppException {
3939 // Try to read a list of users
4040 try {
4141 mapper = Utils .createObjectMapper (configFile );
42- baseUsers = mapper .readValue (Utils .substituteVariables (configFile ), new TypeReference <List < User > >() {
42+ baseUsers = mapper .readValue (Utils .substituteVariables (configFile ), new TypeReference <>() {
4343 });
4444 if (stageConfig != null ) {
4545 throw new AppException ("Stage overrides are not supported for users lists." , ErrorCode .CANT_READ_CONFIG_FILE );
@@ -64,7 +64,6 @@ public void readConfig() throws AppException {
6464 throw new AppException ("Cannot read image for user(s) from config file: " + config , ErrorCode .UNKNOWN_USER , e );
6565 }
6666 validateCustomProperties (users );
67- setInternalUser (users );
6867 }
6968
7069 public void addImage (List <User > users , File parentFolder ) throws AppException {
@@ -85,12 +84,6 @@ private void validateCustomProperties(List<User> users) throws AppException {
8584 }
8685 }
8786
88- private void setInternalUser (List <User > users ) {
89- for (User user : users ) {
90- user .setType ("internal" ); // Default to internal, as external makes no sense using the CLI
91- }
92- }
93-
9487 public User readUser (ObjectMapper mapper , File configFile , File stageConfig , String stage ) throws IOException {
9588 User user = mapper .readValue (Utils .substituteVariables (configFile ), User .class );
9689 if (stageConfig != null ) {
0 commit comments