From fb66a9f2c36c1fc1c3d2d290cbcceea247b3950d Mon Sep 17 00:00:00 2001 From: baiwenteng Date: Fri, 9 Feb 2018 16:32:54 +0800 Subject: [PATCH] Fix grammar errors Replace 'a instance' with 'an instance' in watcher/decision_engine/model/collector/nova.py watcher/decision_engine/model/element/instance.py Change-Id: I39020f3e7b460dea768f7e38fef9ae9e2a4b7357 --- watcher/decision_engine/model/collector/nova.py | 2 +- watcher/decision_engine/model/element/instance.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/watcher/decision_engine/model/collector/nova.py b/watcher/decision_engine/model/collector/nova.py index 157f3b841..55d06c00f 100644 --- a/watcher/decision_engine/model/collector/nova.py +++ b/watcher/decision_engine/model/collector/nova.py @@ -337,7 +337,7 @@ class ModelBuilder(object): Create an instance node for the graph using nova and the `server` nova object. :param instance: Nova VM object. - :return: A instance node for the graph. + :return: An instance node for the graph. """ flavor = instance.flavor instance_attributes = { diff --git a/watcher/decision_engine/model/element/instance.py b/watcher/decision_engine/model/element/instance.py index c68841f76..5b4dca935 100644 --- a/watcher/decision_engine/model/element/instance.py +++ b/watcher/decision_engine/model/element/instance.py @@ -29,7 +29,7 @@ class InstanceState(enum.Enum): STOPPED = 'stopped' # Instance is shut off, the disk image is still there. RESCUED = 'rescued' # A rescue image is running with the original image # attached. - RESIZED = 'resized' # a Instance with the new size is active. + RESIZED = 'resized' # an Instance with the new size is active. SOFT_DELETED = 'soft-delete' # still available to restore.