Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
csv: fix static website hoting should be showing whether it's disable…
Browse files Browse the repository at this point in the history
…d rather than enabled
  • Loading branch information
robbytaylor committed Oct 17, 2019
1 parent ebfdd08 commit 9a5c9d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formatters/csv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class Csv implements S3Audit.Types.Formatter {
return new Promise(resolve => {
bucket.hasStaticWebsiteHosting()
.then((isEnabled: boolean) => {
bucketDetails.static_website = isEnabled
bucketDetails.static_website = !isEnabled
})
.catch((error: AWSError) => {
bucketDetails.static_website = error.message
Expand Down

0 comments on commit 9a5c9d3

Please sign in to comment.