From 1377aceec23fdb0efc4e1406ee308e1377d36065 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Fri, 5 Jun 2020 13:23:46 +0200 Subject: Rename 'linux' mode to 'live' mode 'linux' represents ogLive mode that is the reason for the rename. --- src/ogClient.py | 2 +- src/ogRest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ogClient.py b/src/ogClient.py index 881fd81..b148b74 100644 --- a/src/ogClient.py +++ b/src/ogClient.py @@ -30,7 +30,7 @@ class ogClient: self.CONFIG = config self.mode = self.CONFIG['opengnsys']['mode'] - if self.mode not in {'virtual', 'linux'}: + if self.mode not in {'virtual', 'live'}: raise ValueError('Mode not supported.') if self.CONFIG['samba']['activate']: diff --git a/src/ogRest.py b/src/ogRest.py index a52d8a5..9f6a7e6 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -238,7 +238,7 @@ class ogRest(): self.mode = self.CONFIG['opengnsys']['mode'] self.samba_config = self.CONFIG['samba'] - if self.mode == 'linux': + if self.mode == 'live': self.operations = OgLinuxOperations(self.CONFIG) elif self.mode == 'virtual': from src.virtual.ogOperations import \ -- cgit v1.2.3-18-g5258