diff --git a/src/main/java/com/rundeck/plugins/aws/S3ResourceModelSource.java b/src/main/java/com/rundeck/plugins/aws/S3ResourceModelSource.java index f95dcd7..ce5cd84 100644 --- a/src/main/java/com/rundeck/plugins/aws/S3ResourceModelSource.java +++ b/src/main/java/com/rundeck/plugins/aws/S3ResourceModelSource.java @@ -88,16 +88,19 @@ public class S3ResourceModelSource implements ResourceModelSourceFactory,Describ "json" )); - final static Map renderingOptionsAuthentication = getRenderOpt("Credentials",false); - final static Map renderingOptionsConnection = getRenderOpt("Connection",false); - final static Map renderingOptionsResource = getRenderOpt("Resource",false); + final static Map renderingOptionsAuthentication = getRenderOpt("Credentials",false, true); + final static Map renderingOptionsConnection = getRenderOpt("Connection",false, false); + final static Map renderingOptionsResource = getRenderOpt("Resource",false, false); - protected static Map getRenderOpt(String value, boolean secondary) { + protected static Map getRenderOpt(String value, boolean secondary, boolean password) { Map ret = new HashMap<>(); ret.put(StringRenderingConstants.GROUP_NAME,value); if(secondary){ ret.put(StringRenderingConstants.GROUPING,"secondary"); } + if(password){ + ret.put("displayType",StringRenderingConstants.DisplayType.PASSWORD); + } return ret; }