use more field functions
Using field functions consistently avoids possibility of typos and also helps ensure that all fields are added to RemoteConfigParsers (as long as I have remembered to add them when writing the functions).
This commit is contained in:
parent
7f2bfd41d7
commit
907ca937ab
2 changed files with 8 additions and 8 deletions
|
@ -126,8 +126,8 @@ glacierSetup' ss u mcreds c gc = do
|
|||
remotename = fromJust (lookupName c)
|
||||
defvault = remotename ++ "-" ++ fromUUID u
|
||||
defaults = M.fromList
|
||||
[ (Proposed "datacenter", Proposed $ T.unpack $ AWS.defaultRegion AWS.Glacier)
|
||||
, (Proposed "vault", Proposed defvault)
|
||||
[ (datacenterField, Proposed $ T.unpack $ AWS.defaultRegion AWS.Glacier)
|
||||
, (vaultField, Proposed defvault)
|
||||
]
|
||||
|
||||
prepareStore :: Remote -> Preparer Storer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue