Skip to content

Commit

Permalink
fix(config): Make dryRun overrideable at resource level (#346)
Browse files Browse the repository at this point in the history
- make global dryRun overrideable
  • Loading branch information
jeyrschabu authored Feb 19, 2020
1 parent 2a7bd7e commit 3c116f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class Exclusion {
class ResourceTypeConfiguration {
var enabled: Boolean = false
var enabledActions: List<Action> = mutableListOf(Action.MARK, Action.NOTIFY, Action.DELETE)
var dryRun: Boolean = true
var dryRun: Boolean = false
var retention: Int = 14
var exclusions: MutableSet<Exclusion> = mutableSetOf()
lateinit var name: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ open class WorkConfigurator(
cloudProviderConfiguration.exclusions,
resourceTypeConfiguration.exclusions
),
dryRun = if (swabbieProperties.dryRun) true else resourceTypeConfiguration.dryRun,
dryRun = if (resourceTypeConfiguration.dryRun) true else swabbieProperties.dryRun,
notificationConfiguration = resourceTypeConfiguration.notification,
entityTaggingEnabled = resourceTypeConfiguration.entityTaggingEnabled,
maxAge = resourceTypeConfiguration.maxAge,
Expand Down

0 comments on commit 3c116f1

Please sign in to comment.