"""
Simple read function for files of a single value
:param file_name: (str) file name to read
- :return: (str) contents of the file, or null string for empty file
+ :return: (str) contents of the file, or null string for non-existent file
"""
if os.path.exists(file_name):
with open(file_name, 'r') as f:
summary_data = [health_issue.get('summary', '')
for health_issue in summary_list]
self.summary = [health_desc for health_desc in summary_data
- if health_desc.find('update your health monitoring') == -1]
+ if 'update your health monitoring' not in health_desc]
def update(self, state_object):
self.status = state_object.status