rename config option to be consistent

This commit is contained in:
Bruce Leidl 2018-03-28 16:22:27 -04:00
parent 20bcedc477
commit c64cfd599b

View File

@ -14,8 +14,8 @@ fn default_zone() -> String {
#[derive (Deserialize,Clone)]
pub struct RealmConfig {
#[serde(default = "default_true", rename="add-shared-dir")]
add_shared_dir: bool,
#[serde(default = "default_true", rename="use-shared-dir")]
use_shared_dir: bool,
#[serde(default, rename="use-ephemeral-home")]
use_ephemeral_home: bool,
@ -55,7 +55,7 @@ impl RealmConfig {
pub fn default() -> RealmConfig {
RealmConfig {
add_shared_dir: true,
use_shared_dir: true,
use_ephemeral_home: false,
use_sound: true,
use_x11: true,
@ -76,7 +76,7 @@ impl RealmConfig {
}
pub fn shared_dir(&self) -> bool {
self.add_shared_dir
self.use_shared_dir
}
pub fn emphemeral_home(&self) -> bool {