Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/aws_gate/cli.py b/aws_gate/cli.py 2index ac37c2f..9743415 100644 3--- a/aws_gate/cli.py 4+++ b/aws_gate/cli.py 5@@ -7,7 +7,6 @@ from marshmallow import ValidationError 6 from yaml.scanner import ScannerError 7 8 from aws_gate import __version__, __description__ 9-from aws_gate.bootstrap import bootstrap 10 from aws_gate.config import load_config_from_files 11 from aws_gate.constants import ( 12 SUPPORTED_KEY_TYPES, 13@@ -59,10 +58,14 @@ def get_argument_parser(*args, **kwargs): 14 15 # 'bootstrap' subcommand 16 bootstrap_parser = subparsers.add_parser( 17- "bootstrap", help="Download and install session-manager-plugin" 18+ "bootstrap", 19+ help="Download and install session-manager-plugin (disabled by nix)", 20 ) 21 bootstrap_parser.add_argument( 22- "-f", "--force", action="store_true", help="Forces bootstrap operation" 23+ "-f", 24+ "--force", 25+ action="store_true", 26+ help="Forces bootstrap operation (disabled by nix)", 27 ) 28 29 # 'exec' subcommand 30@@ -268,7 +271,9 @@ def main(args=None, argument_parser=None): 31 logger.debug('Using AWS profile "%s" in region "%s"', profile, region) 32 33 if args.subcommand == "bootstrap": 34- bootstrap(force=args.force) 35+ print( 36+ f"The SSM Plugin will not be downloaded as aws-gate was installed from nixpkgs and the plugin comes pre-bundled. The '--force' flag will not override this behavior." 37+ ) 38 elif args.subcommand == "exec": 39 exec( 40 config=config,