summaryrefslogtreecommitdiff
path: root/rhimport.pm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2012-01-20 23:17:45 (GMT)
committerChristian Pointner <equinox@helsinki.at>2012-01-20 23:17:45 (GMT)
commit7fcaad9eadba6a3968c2b24526ce69db3d1b4de0 (patch)
treedd55b9407548da9ea976ef87580c6310d0e52a42 /rhimport.pm
parentb0e2a62cbc92cac628ff8d3565b2e310aad0c4c1 (diff)
simpler interface to pv_add_note
git-svn-id: https://svn.helsinki.at/rhimport/trunk@118 7c65635b-ec39-4f67-a626-873dbafdd612
Diffstat (limited to 'rhimport.pm')
-rw-r--r--rhimport.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/rhimport.pm b/rhimport.pm
index 6e125d2..fbecbc1 100644
--- a/rhimport.pm
+++ b/rhimport.pm
@@ -329,9 +329,11 @@ sub delete_file
sub pv_add_note
{
- my $title = shift;
- my $text = shift;
- my @script = @_;
+ my ( $title, $text, $id, $date, $type ) = @_;
+ $type = 'n' unless $type;
+
+ # TODO: implement type as soon pv supports this
+ my @script = ('/usr/bin/ssh', 'root@intranet', 'addnote', $id, $date);
my ($reader, $writer, $error ) = ( new IO::Handle, new IO::Handle, new IO::Handle );
$writer->autoflush(1);