Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixops
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 633854c193ff
Choose a base ref
...
head repository: NixOS/nixops
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 323da670cb7c
Choose a head ref
  • 4 commits
  • 3 files changed
  • 2 contributors

Commits on Oct 24, 2019

  1. util: log commands

    when --debug is set
    teto committed Oct 24, 2019
    Copy the full SHA
    b8cda85 View commit details
  2. ssh_util: log more ssh commands

    to help debugging
    teto committed Oct 24, 2019
    Copy the full SHA
    e71cb1d View commit details

Commits on Oct 28, 2019

  1. Verified

    This commit was signed with the committer’s verified signature.
    AmineChikhaoui Amine Chikhaoui
    Copy the full SHA
    115ea91 View commit details

Commits on Oct 29, 2019

  1. Verified

    This commit was signed with the committer’s verified signature.
    AmineChikhaoui Amine Chikhaoui
    Copy the full SHA
    323da67 View commit details
Showing with 5 additions and 4 deletions.
  1. +1 −1 nixops/script_defs.py
  2. +3 −2 nixops/ssh_util.py
  3. +1 −1 release.nix
2 changes: 1 addition & 1 deletion nixops/script_defs.py
Original file line number Diff line number Diff line change
@@ -711,7 +711,7 @@ def op_copy_closure(args):
raise Exception("unknown machine ‘{0}’".format(machine))
env = dict(os.environ)
env['NIX_SSHOPTS'] = ' '.join(m.get_ssh_flags())
res = subprocess.call(
res = nixops.util.logged_exec(
["nix", "copy", "--to",
"ssh://{}".format(m.get_ssh_name()), args.storepath],
env=env)
5 changes: 3 additions & 2 deletions nixops/ssh_util.py
Original file line number Diff line number Diff line change
@@ -48,9 +48,10 @@ def __init__(self, target, logger, ssh_flags, passwd, user, compress=False):
'-oNumberOfPasswordPrompts={0}'.format(pass_prompts),
'-oServerAliveInterval=60',
'-oControlPersist=600'] \
+ (["-C"] if compress else [])
+ (["-C"] if compress else []) \
+ ssh_flags

res = subprocess.call(cmd + ssh_flags, **kwargs)
res = nixops.util.logged_exec(cmd, logger, **kwargs)
if res != 0:
raise SSHConnectionFailed(
"unable to start SSH master connection to "
2 changes: 1 addition & 1 deletion release.nix
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@

let
pkgs = import nixpkgs { config = {}; overlays = []; };
version = "1.7" + (if officialRelease then "" else "pre${toString nixopsSrc.revCount}_${nixopsSrc.shortRev}");
version = "1.8" + (if officialRelease then "" else "pre${toString nixopsSrc.revCount}_${nixopsSrc.shortRev}");

allPlugins = let
plugins = let