summaryrefslogtreecommitdiff
path: root/Propellor/PrivData.hs
diff options
context:
space:
mode:
authorJoey Hess2014-04-01 13:51:58 -0400
committerJoey Hess2014-04-01 13:51:58 -0400
commit79cbdf35b1188d83e64a713efa82bc7a0a72a181 (patch)
tree4ad96d9fa0d2e61f6cd15a2b635fef67ea7c9bb1 /Propellor/PrivData.hs
parent2c328ad142421302b41bc961aa175f60e27f0ab3 (diff)
better method of starting propellor simplesh inside docker
Diffstat (limited to 'Propellor/PrivData.hs')
-rw-r--r--Propellor/PrivData.hs9
1 files changed, 0 insertions, 9 deletions
diff --git a/Propellor/PrivData.hs b/Propellor/PrivData.hs
index 98a1da62..d97a7725 100644
--- a/Propellor/PrivData.hs
+++ b/Propellor/PrivData.hs
@@ -18,15 +18,6 @@ import Utility.Tmp
import Utility.SafeCommand
import Utility.Misc
--- | Note that removing or changing field names will break the
--- serialized privdata files, so don't do that!
--- It's fine to add new fields.
-data PrivDataField
- = DockerAuthentication
- | SshPrivKey UserName
- | Password UserName
- deriving (Read, Show, Ord, Eq)
-
withPrivData :: PrivDataField -> (String -> IO Result) -> IO Result
withPrivData field a = maybe missing a =<< getPrivData field
where