Additional edge case in parsing Azure configuration files

This commit is contained in:
Daniel Goldberg 2018-04-17 11:33:14 +03:00
parent 3fe6d2456b
commit ca65be8946
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class AzureCollector(object):
except IOError:
LOG.warning("Failed to parse VM Access plugin file. Could not open file")
return None
except (KeyError, ValueError):
except (KeyError, ValueError, IndexError):
LOG.warning("Failed to parse VM Access plugin file. Invalid format")
return None
except subprocess.CalledProcessError: