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

fix: pass variables into a function #16291

Merged
merged 2 commits into from
Dec 19, 2019
Merged

fix: pass variables into a function #16291

merged 2 commits into from
Dec 19, 2019

Conversation

drdelambre
Copy link
Contributor

Closes #16290

just looks like the template function wasn't being passed variables. also took time to normalize some internal state while rummaging around in there.

const config = transform(
TELEGRAF_OUTPUT,
Object.assign({}, OUTPUT_DEFAULTS, {})
Object.assign({}, OUTPUT_DEFAULTS, {
server,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the actual magic

const config = transform(
TELEGRAF_OUTPUT,
Object.assign({}, OUTPUT_DEFAULTS, {})
Object.assign({}, OUTPUT_DEFAULTS, {
Copy link
Contributor

Choose a reason for hiding this comment

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

interesting that this isn't being destructured, might be worth considering when thinking about patterns @ebb-tide.

also, it looks like there's an extra space in indentation below, i think you'll need to run prettier:fix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i dont understand

@drdelambre drdelambre requested review from hoorayimhelping and a team December 19, 2019 17:54
@ghost ghost requested review from asalem1 and TCL735 and removed request for a team December 19, 2019 17:54
@drdelambre drdelambre merged commit 6c33488 into master Dec 19, 2019
@drdelambre drdelambre deleted the alex_hotfix_output branch December 19, 2019 18:36
alexpaxton pushed a commit that referenced this pull request Jan 9, 2020
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.

Cloud 2.0 GCP: InfluxDB Output plugin download does not match what is in UI
3 participants