mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
snapshots: Minor refactoring
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
3 files changed
+32
-30
No files matched your search
@@ -115,3 +115,7 @@ class YAMLFile(object):
|
||||
|
||||
def is_file_empty(self):
|
||||
return os.stat(self.yaml_file).st_size == 0
|
||||
|
||||
|
||||
def yes_or_no(cond):
|
||||
return 'yes' if cond else 'no'
|
||||
Reference in new issue
Block a user