summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2014-11-07 16:06:32 +0000
committerYour Name <you@example.com>2014-11-07 16:06:32 +0000
commit7eaeee88ef260a1a773320f8aaea88adb5f6a3d3 (patch)
treea00635f04d6362b89a2efadbec8ad042ff8bc426
parentb072aab658a390352d909559e85f6e18d4f51892 (diff)
downloadmorph-baserock/pedroalvarez/rawdisk-to-device2.tar.gz
-rw-r--r--morphlib/writeexts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/writeexts.py b/morphlib/writeexts.py
index a81e0c22..884d1b4c 100644
--- a/morphlib/writeexts.py
+++ b/morphlib/writeexts.py
@@ -571,7 +571,7 @@ class WriteExtension(cliapp.Application):
logging.error("Error checking SSH connectivity: %s", str(e))
raise cliapp.AppException(
'Unable to SSH to %s: %s' % (ssh_host, e))
- def deploying_to_device(self, location):
+ def is_device(self, location):
dev_regex = re.compile("^/dev/((sd|vd|mmcblk|hd)[a-z0-9]+)$")
if dev_regex.match(location):
return true