From 4959d768ddc21c72854e71830eaa06cd9a90aa03 Mon Sep 17 00:00:00 2001 From: Nguyen Hung Phuong Date: Sat, 26 Mar 2016 15:01:53 +0700 Subject: [PATCH] Fix typos in Astara This patch fixes typos in Astara files. Change-Id: I1cfe3f57240a57511eaa277466cbaa7c60969bc3 --- astara/api/neutron.py | 2 +- astara/api/nova.py | 6 +++--- astara/drivers/base.py | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/astara/api/neutron.py b/astara/api/neutron.py index 58eb882d..672c1460 100644 --- a/astara/api/neutron.py +++ b/astara/api/neutron.py @@ -764,7 +764,7 @@ class AstaraExtClientWrapper(client.Client): class L3PluginApi(object): - """Agent side of the Qunatum l3 agent RPC API.""" + """Agent side of the Quantum l3 agent RPC API.""" BASE_RPC_API_VERSION = '1.0' diff --git a/astara/api/nova.py b/astara/api/nova.py index d2d2e179..258fbe83 100644 --- a/astara/api/nova.py +++ b/astara/api/nova.py @@ -261,7 +261,7 @@ class Nova(object): self.instance_provider = default(self.client) def get_instances_for_obj(self, name): - """Retreives all nova servers for a given instance name. + """Retrieves all nova servers for a given instance name. :param name: name of the instance being queried @@ -276,7 +276,7 @@ class Nova(object): return [InstanceInfo.from_nova(i) for i in instances] def get_instance_for_obj(self, name): - """Retreives a nova server for a given instance name. + """Retrieves a nova server for a given instance name. :param name: name of the instance being queried @@ -292,7 +292,7 @@ class Nova(object): return None def get_instance_by_id(self, instance_id): - """Retreives a nova server for a given instance_id. + """Retrieves a nova server for a given instance_id. :param instance_id: Nova instance ID of instance being queried diff --git a/astara/drivers/base.py b/astara/drivers/base.py index 92c8eb0f..f412c173 100644 --- a/astara/drivers/base.py +++ b/astara/drivers/base.py @@ -80,7 +80,7 @@ class BaseDriver(object): pass def update_config(self, management_address, config): - """Updates appliance configuratino + """Updates appliance configuration This is responsible for pushing configuration to the managed appliance @@ -103,7 +103,7 @@ class BaseDriver(object): :param worker_context: - :returns: A tuple (managment_port, [instance_ports]) + :returns: A tuple (management_port, [instance_ports]) """ def _make_ports(): pass @@ -119,7 +119,7 @@ class BaseDriver(object): @staticmethod def pre_populate_hook(): - """called in populate.py durring driver loading loop. + """called in populate.py during driver loading loop. """ pass @@ -158,7 +158,7 @@ class BaseDriver(object): :param event_type: str event type, for example router.create.end :param payload: The payload body of the incoming event - :returns: A populated Event objet if it should process, or None if not + :returns: A populated Event object if it should process, or None if not """ pass @@ -173,7 +173,7 @@ class BaseDriver(object): """Lists interfaces attached to the resource. This lists the interfaces attached to the resource from the POV - of the resource iteslf. + of the resource itself. :returns: A list of interfaces """