snapshots: Minor refactoring

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
Joseph Nuthalapati committed 2017-12-18 12:23:58 +05:30
1 parent 76ffad7955
commit 202d0bf5c7
3 files changed
+32 -30

No files matched your search

+4
View File
@@ -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'