Skip to content

Commit

Permalink
script_defs: import only namespace from argparse
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Mar 22, 2020
1 parent ebdd233 commit 086861d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixops/script_defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import nixops.statefile
import prettytable
import argparse
from argparse import Namespace
import os
import pwd
import re
Expand Down Expand Up @@ -66,7 +66,7 @@ def sort_deployments(
# Handle the --all switch: if --all is given, return all deployments;
# otherwise, return the deployment specified by -d /
# $NIXOPS_DEPLOYMENT.
def one_or_all(args: argparse.Namespace) -> List[nixops.deployment.Deployment]:
def one_or_all(args: Namespace) -> List[nixops.deployment.Deployment]:
if args.all:
sf = nixops.statefile.StateFile(args.state_file)
return sf.get_all_deployments()
Expand Down

0 comments on commit 086861d

Please sign in to comment.