Bug 1437710: fix spelling of zstd; r?gps draft
authorDustin J. Mitchell <dustin@mozilla.com>
Mon, 12 Feb 2018 23:32:11 +0000
changeset 754207 e112d220a057da47176e48a15cca6481eb8dbe6d
parent 753976 165474ef313b106f0364cf1941a0030c41855876
push id98783
push userdmitchell@mozilla.com
push dateMon, 12 Feb 2018 23:33:17 +0000
reviewersgps
bugs1437710
milestone60.0a1
Bug 1437710: fix spelling of zstd; r?gps MozReview-Commit-ID: 8bSU61Lvh0T
taskcluster/mach_commands.py
--- a/taskcluster/mach_commands.py
+++ b/taskcluster/mach_commands.py
@@ -371,17 +371,17 @@ class MachCommands(MachCommandBase):
                     if regexprogram.match(dep):
                         filterededges.add((key, dep, depname))
         filtered_taskgraph = TaskGraph(filteredtasks, Graph(set(filteredtasks), filterededges))
         return filtered_taskgraph
 
 
 @CommandProvider
 class TaskClusterImagesProvider(MachCommandBase):
-    def _ensure_sztd(self):
+    def _ensure_zstd(self):
         try:
             import zstd
             # There are two zstd libraries that exist in the wild, ensure we
             # have the right one.
             zstd.ZstdCompressor
             zstd.ZstdDecompressor
         except (ImportError, AttributeError):
             self._activate_virtualenv()
@@ -396,17 +396,17 @@ class TaskClusterImagesProvider(MachComm
                      help="tag that the image should be loaded as. If not "
                           "image will be loaded with tag from the tarball",
                      metavar="name:tag")
     @CommandArgument('image_name', nargs='?',
                      help="Load the image of this name based on the current"
                           "contents of the tree (as built for mozilla-central"
                           "or mozilla-inbound)")
     def load_image(self, image_name, task_id, tag):
-        self._ensure_sztd()
+        self._ensure_zstd()
         from taskgraph.docker import load_image_by_name, load_image_by_task_id
         if not image_name and not task_id:
             print("Specify either IMAGE-NAME or TASK-ID")
             sys.exit(1)
         try:
             if task_id:
                 ok = load_image_by_task_id(task_id, tag)
             else: