diff options
| author | Sean Dague <sdague@linux.vnet.ibm.com> | 2013-01-09 16:00:36 -0500 |
|---|---|---|
| committer | Sean Dague <sdague@linux.vnet.ibm.com> | 2013-01-10 08:57:09 -0500 |
| commit | 5fca1d9e97913af549adaef0827b189540fc87fa (patch) | |
| tree | 2a090d66f2288a0972eec2a1c65e4cc2ddeaee1b /nova/virt | |
| parent | 8143021bdb5ec10ea60a6613e29bdc9347701a04 (diff) | |
fix new N402 errors
fix the N402 errors that have slipped in in the last 48 hrs since
starting this patch series.
fix an N401 error that our scanner current can't find because it
only looks for doc strings on classes and defs.
this is the xeno's paradox of patch series, but we're getting close.
Change-Id: I4a763bb4c812335d853eae05c72464f18ab93297
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/baremetal/pxe.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nova/virt/baremetal/pxe.py b/nova/virt/baremetal/pxe.py index f97126e72..b94ac9032 100644 --- a/nova/virt/baremetal/pxe.py +++ b/nova/virt/baremetal/pxe.py @@ -154,17 +154,17 @@ def get_deploy_ari_id(instance): def get_image_dir_path(instance): - """Generate the dir for an instances disk""" + """Generate the dir for an instances disk.""" return os.path.join(CONF.instances_path, instance['name']) def get_image_file_path(instance): - """Generate the full path for an instances disk""" + """Generate the full path for an instances disk.""" return os.path.join(CONF.instances_path, instance['name'], 'disk') def get_pxe_config_file_path(instance): - """Generate the path for an instances PXE config file""" + """Generate the path for an instances PXE config file.""" return os.path.join(CONF.baremetal.tftp_root, instance['uuid'], 'config') @@ -185,7 +185,7 @@ def get_partition_sizes(instance): def get_pxe_mac_path(mac): - """Convert a MAC address into a PXE config file name""" + """Convert a MAC address into a PXE config file name.""" return os.path.join( CONF.baremetal.tftp_root, 'pxelinux.cfg', @@ -232,7 +232,7 @@ def get_tftp_image_info(instance): class PXE(base.NodeDriver): - """PXE bare metal driver""" + """PXE bare metal driver.""" def __init__(self): super(PXE, self).__init__() @@ -352,7 +352,7 @@ class PXE(base.NodeDriver): def cache_images(self, context, node, instance, admin_password, image_meta, injected_files, network_info): - """Prepare all the images for this instance""" + """Prepare all the images for this instance.""" tftp_image_info = get_tftp_image_info(instance) self._cache_tftp_images(context, instance, tftp_image_info) @@ -361,7 +361,7 @@ class PXE(base.NodeDriver): injected_files, admin_password) def destroy_images(self, context, node, instance): - """Delete instance's image file""" + """Delete instance's image file.""" bm_utils.unlink_without_raise(get_image_file_path(instance)) bm_utils.unlink_without_raise(get_image_dir_path(instance)) @@ -420,7 +420,7 @@ class PXE(base.NodeDriver): bm_utils.create_link_without_raise(pxe_config_file_path, mac_path) def deactivate_bootloader(self, context, node, instance): - """Delete PXE bootloader images and config""" + """Delete PXE bootloader images and config.""" try: image_info = get_tftp_image_info(instance) except exception.NovaException: |
