summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjaypipes@gmail.com <>2010-08-10 09:54:13 -0400
committerjaypipes@gmail.com <>2010-08-10 09:54:13 -0400
commitabfd82d89653482e21e1139fb8ce8bf89c2b4d2c (patch)
tree775f6ed592866c0a72412eab7f42910a26b071d6
parentc6c222800ccc1203fc0edd7716dd808ec8f6bdc4 (diff)
downloadnova-abfd82d89653482e21e1139fb8ce8bf89c2b4d2c.tar.gz
nova-abfd82d89653482e21e1139fb8ce8bf89c2b4d2c.tar.xz
nova-abfd82d89653482e21e1139fb8ce8bf89c2b4d2c.zip
pylint fixes for nova/virt/connection.py
-rw-r--r--nova/virt/connection.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/nova/virt/connection.py b/nova/virt/connection.py
index 004adb19d..bb54f5db7 100644
--- a/nova/virt/connection.py
+++ b/nova/virt/connection.py
@@ -17,6 +17,11 @@
# License for the specific language governing permissions and limitations
# under the License.
+"""Abstraction of the underlying virtualization API"""
+
+import logging
+import sys
+
from nova import flags
from nova.virt import fake
from nova.virt import libvirt_conn
@@ -27,6 +32,11 @@ FLAGS = flags.FLAGS
def get_connection(read_only=False):
+ """Returns a connection to the underlying virtualization API
+
+ The read_only parameter is passed through to the underlying API's
+ get_connection() method if applicable
+ """
# TODO(termie): maybe lazy load after initial check for permissions
# TODO(termie): check whether we can be disconnected
t = FLAGS.connection_type