Skip to content

Commit 81a0991

Browse files
committed
(GH-177) Remove version file detection
This commit removes the check for the VERSION file inside the puppet agent install path. This was originally used as a check that you had a valid Puppet Agent path specified, but since there are variances whether the file exists or not or where it's located in each package for each platform, and it doesn't provide any actual value, it makes sense to remove it.
1 parent 9234c67 commit 81a0991

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

client/src/connection.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,6 @@ export class ConnectionManager implements IConnectionManager {
265265
result.options.shell = true;
266266
break;
267267
}
268-
// Check if this really is a Puppet Agent installation
269-
if (!fs.existsSync(path.join(puppetAgentDir, "VERSION"))) {
270-
this.logger.debug(logPrefix + "Could not find a valid Puppet Agent installation at " + puppetAgentDir);
271-
return null;
272-
} else {
273-
this.logger.debug(logPrefix + "Found a valid Puppet Agent installation at " + puppetAgentDir);
274-
}
275268

276269
let puppetDir = path.join(puppetAgentDir,"puppet");
277270
let facterDir = path.join(puppetAgentDir,"facter");

0 commit comments

Comments
 (0)