Skip to content

Commit

Permalink
Merge pull request #785 from joelynch/metadata-configuration-getters
Browse files Browse the repository at this point in the history
Add getters for IMDSv2 metadata fields
  • Loading branch information
res0nance authored Nov 15, 2022
2 parents 9c8f3b2 + db6c26b commit 0064fec
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/hudson/plugins/ec2/EC2AbstractSlave.java
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,18 @@ public int getBootDelay() {
return amiType.getBootDelayInMillis();
}

public Boolean getMetadataEndpointEnabled() {
return metadataEndpointEnabled;
}

public Boolean getMetadataTokensRequired() {
return metadataTokensRequired;
}

public Integer getMetadataHopsLimit() {
return metadataHopsLimit;
}

public boolean isSpecifyPassword() {
return amiType.isWindows() && ((WindowsData) amiType).isSpecifyPassword();
}
Expand Down

0 comments on commit 0064fec

Please sign in to comment.