rename config option to be consistent
This commit is contained in:
parent
20bcedc477
commit
c64cfd599b
@ -14,8 +14,8 @@ fn default_zone() -> String {
|
|||||||
|
|
||||||
#[derive (Deserialize,Clone)]
|
#[derive (Deserialize,Clone)]
|
||||||
pub struct RealmConfig {
|
pub struct RealmConfig {
|
||||||
#[serde(default = "default_true", rename="add-shared-dir")]
|
#[serde(default = "default_true", rename="use-shared-dir")]
|
||||||
add_shared_dir: bool,
|
use_shared_dir: bool,
|
||||||
|
|
||||||
#[serde(default, rename="use-ephemeral-home")]
|
#[serde(default, rename="use-ephemeral-home")]
|
||||||
use_ephemeral_home: bool,
|
use_ephemeral_home: bool,
|
||||||
@ -55,7 +55,7 @@ impl RealmConfig {
|
|||||||
|
|
||||||
pub fn default() -> RealmConfig {
|
pub fn default() -> RealmConfig {
|
||||||
RealmConfig {
|
RealmConfig {
|
||||||
add_shared_dir: true,
|
use_shared_dir: true,
|
||||||
use_ephemeral_home: false,
|
use_ephemeral_home: false,
|
||||||
use_sound: true,
|
use_sound: true,
|
||||||
use_x11: true,
|
use_x11: true,
|
||||||
@ -76,7 +76,7 @@ impl RealmConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn shared_dir(&self) -> bool {
|
pub fn shared_dir(&self) -> bool {
|
||||||
self.add_shared_dir
|
self.use_shared_dir
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn emphemeral_home(&self) -> bool {
|
pub fn emphemeral_home(&self) -> bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user