Skip to content

Commit

Permalink
Print the DS ID
Browse files Browse the repository at this point in the history
Closes: Cacti#3647
Signed-off-by: Richard Laager <rlaager@wiktel.com>
  • Loading branch information
rlaager committed Jun 29, 2020
1 parent 9992693 commit 06e206e
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 @@ -43,6 +43,7 @@ Cacti CHANGELOG
-issue#3632: Some database conditions lead to warnings in the Cacti log
-issue#3635: Backtrace Errors attempting to run AUTOM8 to Remote Data Collector
-issue#3639: Duplicate Entry error when updating device
-issue#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 @@ -99,6 +99,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 06e206e

Please sign in to comment.