Skip to content
Snippets Groups Projects
Commit 55059a53 authored by Oliver Breitwieser's avatar Oliver Breitwieser Committed by Todd Gamblin
Browse files

Fixed spelling of variable (#2516)

parent 72c01fbd
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ class ConstraintAction(argparse.Action): ...@@ -55,7 +55,7 @@ class ConstraintAction(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None): def __call__(self, parser, namespace, values, option_string=None):
# Query specs from command line # Query specs from command line
self.values = values self.values = values
namespace.contraint = values namespace.constraint = values
namespace.specs = self._specs namespace.specs = self._specs
def _specs(self, **kwargs): def _specs(self, **kwargs):
......
...@@ -116,7 +116,7 @@ def find(parser, args): ...@@ -116,7 +116,7 @@ def find(parser, args):
query_specs = args.specs(**q_args) query_specs = args.specs(**q_args)
# Exit early if no package matches the constraint # Exit early if no package matches the constraint
if not query_specs and args.constraint: if not query_specs and args.constraint:
msg = "No package matches the query: {0}".format(args.contraint) msg = "No package matches the query: {0}".format(args.constraint)
tty.msg(msg) tty.msg(msg)
return return
# Display the result # Display the result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment