Skip to content

Commit

Permalink
Print the DS ID (#3650)
Browse files Browse the repository at this point in the history
Closes: #3647
Signed-off-by: Richard Laager <rlaager@wiktel.com>

Co-authored-by: TheWitness <thewitness@cacti.net>
  • Loading branch information
rlaager and TheWitness committed Jun 30, 2020
1 parent 5181b79 commit 3376792
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Cacti CHANGELOG
-issue#3635: Backtrace Errors attempting to run AUTOM8 to Remote Data Collector
-issue#3639: Duplicate Entry error when updating device
-issue#3646: add_datasource.php fails calling api_data_source_cache_crc_update()
-feature#3647: add_datasource.php should print the created ID

1.2.12
-security#3467: Lack of escaping of color items can lead to XSS exposure (CVE-2020-7106)
Expand Down
2 changes: 2 additions & 0 deletions cli/add_datasource.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@
push_out_host($host_id, $local_data_id);
}

print "DS Added - DS[$local_data_id]\n";

/* display_version - displays version information */
function display_version() {
$version = get_cacti_cli_version();
Expand Down

0 comments on commit 3376792

Please sign in to comment.