Mark the DSA host pubkey as optional
authorApollon Oikonomopoulos <apoikos@gmail.com>
Sun, 1 Sep 2013 20:36:29 +0000 (23:36 +0300)
committerKlaus Aehlig <aehlig@google.com>
Mon, 9 Sep 2013 09:22:01 +0000 (11:22 +0200)
Commit a9542a4 introduced support for DSA SSH keys. However, the dsahostkeypub
field added to the config is not marked as optional in the Haskell components.
As a result, luxid thinks the config file is corrupt and refuses to start. We
fix this by marking the dsahostkeypub as an optionalField.

This fixes issue 560.

Signed-off-by: Apollon Oikonomopoulos <apoikos@gmail.com>
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>

src/Ganeti/Objects.hs

index 3f5b513..57d6f9e 100644 (file)
@@ -669,7 +669,8 @@ type UidPool = [(Int, Int)]
 -- * Cluster definitions
 $(buildObject "Cluster" "cluster" $
   [ simpleField "rsahostkeypub"           [t| String           |]
-  , simpleField "dsahostkeypub"           [t| String           |]
+  , optionalField $
+    simpleField "dsahostkeypub"           [t| String           |]
   , simpleField "highest_used_port"       [t| Int              |]
   , simpleField "tcpudp_port_pool"        [t| [Int]            |]
   , simpleField "mac_prefix"              [t| String           |]