Skip to content

When adding datasource fails from CLI, created Datasource ID should be printed #3647

Closed

Description

@rlaager

Feature Request

In a local script, we are calling e.g. /usr/share/cacti/cli/add_datasource.php --host-id=261 --data-template-id=90. It does not print out the ID of the DS created. We need the ID for further steps.

Describe the solution you'd like

I would like it to print $local_data_id in some form.

Describe alternatives you've considered

We have considered doing all the work of add_datasource.php in our script. That would be a lot of duplicated effort.

Activity

  1. added 2 commits that reference this issue on Jun 29, 2020
    06e206e
    482d31e
  2. added a commit that references this issue on Jun 30, 2020
    3376792
  3. added this to the 1.2.13 milestone on Jul 2, 2020
  4. TheWitness commented on Jul 2, 2020

    @TheWitness
    Member

    Thanks!

  5. changed the title [-]add_datasource.php should print the created ID[/-] [+]add_datasource.php should print the created Datasource ID[/+] on Jul 12, 2020
  6. changed the title [-]add_datasource.php should print the created Datasource ID[/-] [+]When Adding datasource fails from CLI, created Datasource ID should be printed[/+] on Jul 12, 2020
  7. changed the title [-]When Adding datasource fails from CLI, created Datasource ID should be printed[/-] [+]When adding datasource fails from CLI, created Datasource ID should be printed[/+] on Jul 12, 2020
  8. locked and limited conversation to collaborators on Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementGeneral tag for an enhancementresolvedA fixed issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions