Correct properties of the cluster's file storage dir
authorHelga Velroyen <helgav@google.com>
Wed, 9 Oct 2013 12:16:40 +0000 (14:16 +0200)
committerHelga Velroyen <helgav@google.com>
Fri, 11 Oct 2013 11:13:42 +0000 (13:13 +0200)
commit5ce621ab2d83b8ac38d9a8fc3123fbd3feaa4b49
treed24e03687b07416d7c4312075b0a18f1d9600a2d
parent916c0e6fbad2874c09bc18a3e29b2b0ba25821f8
Correct properties of the cluster's file storage dir

This patch does:
- Rename the haskell opcode parameter
  'pGlobalFileStorageDir' and 'pGlobalSharedfileStorageDir'
  to 'pClusterFileStorageDir' and
  'pClusterSharedfileStorageDir', respectively, because
  the old name was misleading.
- The two parameters are made optional strings instead of
  non-empty strings. This actually used to be like this
  before, but was accidentally overriden by the switch to
  opcode generation from haskell to python.
- The ClusterFileStorageDir parameter had to be renamed in
  Haskell to not clash with the FileStorageDir parameter
  of the OpInstanceCreate code.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
src/Ganeti/OpCodes.hs
src/Ganeti/OpParams.hs
test/hs/Test/Ganeti/OpCodes.hs