Browse Source

Don't use npm list --parseable

Turns out we lose version info with --parseable (so not sure in what
world this is parseable output) so stop using the --parseable flag. This
corrects behavior where we reinstall ethercalc every puppet run which
can upgrade unpinned dep libs in ways that break them on older node (we
are using the ethercalc prescribed node but its a little old).

Change-Id: Ib9aebecf3a0c36c50e5069b1a871886e4ddb1a42
Clark Boylan 2 years ago
parent
commit
4034168e71
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      manifests/init.pp

+ 1
- 1
manifests/init.pp View File

@@ -69,7 +69,7 @@ class ethercalc (
69 69
 
70 70
   exec { 'install-ethercalc':
71 71
     command => "npm install ethercalc@${ethercalc_version}",
72
-    unless  => "npm ls --parseable | grep ethercalc@${ethercalc_version}",
72
+    unless  => "npm ls | grep ethercalc@${ethercalc_version}",
73 73
     path    => $path,
74 74
     cwd     => $base_install_dir,
75 75
     require => Anchor['nodejs-anchor'],

Loading…
Cancel
Save