Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PDB-4275) import/export configure expiration #2870

Merged
merged 1 commit into from
Apr 5, 2019
Merged

(PDB-4275) import/export configure expiration #2870

merged 1 commit into from
Apr 5, 2019

Conversation

robdaemon
Copy link
Contributor

Adds export and import of configure-expiration commands via the nodes
queries

@robdaemon robdaemon added the work in progress (...and please don't merge) label Mar 25, 2019
@puppetlabs-jenkins
Copy link
Contributor

Test PASSed

1 similar comment
@puppetlabs-jenkins
Copy link
Contributor

Test PASSed

@robdaemon robdaemon removed the work in progress (...and please don't merge) label Mar 25, 2019
@puppetlabs-jenkins
Copy link
Contributor

Test PASSed

@puppetcla
Copy link

CLA signed by all contributors.

@puppetlabs-jenkins
Copy link
Contributor

Test FAILed

@puppetlabs-jenkins
Copy link
Contributor

Test PASSed

1 similar comment
@puppetlabs-jenkins
Copy link
Contributor

Test PASSed

@robdaemon robdaemon changed the base branch from master to 6.3.x April 5, 2019 19:13
@puppetlabs-jenkins
Copy link
Contributor

Test PASSed

@puppetlabs-jenkins
Copy link
Contributor

Test FAILed

1 similar comment
@puppetlabs-jenkins
Copy link
Contributor

Test FAILed

[puppetlabs.puppetdb.command :as command]
[puppetlabs.puppetdb.command.constants :as command-constants]
[puppetlabs.puppetdb.utils :as utils]
[clj-time.format :as time-fmt]
[clj-time.coerce :as time-coerce]
[puppetlabs.puppetdb.schema :as pls]
[schema.core :as s]
[puppetlabs.i18n.core :refer [trs]]))
[puppetlabs.i18n.core :refer [trs]]
[flatland.ordered.map :refer [ordered-map]]))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't look like this is used, and it threw a compilation error in jenkins

:- [configure-expiration-wireformat-schema]
[nodes :- [nodes-wireformat-schema]]
(->> nodes
(filter #(false? (:expires_facts %)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false? is only false for the literal value false, since expires_facts is nil this will end up not filtering anything right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(filter #(false? (:expires_facts %)))
(filter :expires_facts_updated %))

@puppetlabs-jenkins
Copy link
Contributor

Test PASSed

Adds export and import of configure-expiration commands via the nodes
queries. This will only export nodes that have an explicit factset
expiration status set.
@puppetlabs-jenkins
Copy link
Contributor

Test PASSed

@rbrw rbrw merged commit d028aa6 into puppetlabs:6.3.x Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants