forked from CESNET/perun-services
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(generic_gen): send script for generic_gen
* added send script for generic_gen * the send script expects destination type every time (this should always get passed by the engine anyway)
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python3 | ||
import sys | ||
|
||
import generic_sender | ||
import send_lib | ||
|
||
send_lib.check_input_fields(sys.argv, generic_script=True) | ||
|
||
facility = sys.argv[1] | ||
destination = sys.argv[2] | ||
destination_type = sys.argv[3] | ||
service_name = sys.argv[4] | ||
|
||
generic_sender.send(service_name, facility, destination, destination_type) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters