summaryrefslogtreecommitdiff
path: root/perl/lib/Wallet/Object/Duo.pm
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2014-07-16 15:51:13 -0700
committerRuss Allbery <rra@stanford.edu>2014-07-16 16:25:37 -0700
commit66dd4a9093be4562d2c7a7a7d253d2afb034aef8 (patch)
treec2f6ddcd707113099a71cd394a2a1e68de5f7bb3 /perl/lib/Wallet/Object/Duo.pm
parentf8963ceb19cd2b503b981f43a3f8c0f45649989f (diff)
Include the Duo type in the name of Duo integrations
Eventually, there will be multiple object types for different Duo integrations, and they will need to have unique names. Add the Duo type in parentheses after the name to help ensure this. Change-Id: I679130f9136077fc6bf5d8c6c9ad98ec83b400d0 Reviewed-on: https://gerrit.stanford.edu/1573 Reviewed-by: Russ Allbery <rra@stanford.edu> Tested-by: Russ Allbery <rra@stanford.edu>
Diffstat (limited to 'perl/lib/Wallet/Object/Duo.pm')
-rw-r--r--perl/lib/Wallet/Object/Duo.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/lib/Wallet/Object/Duo.pm b/perl/lib/Wallet/Object/Duo.pm
index e3fe2da..fcf3819 100644
--- a/perl/lib/Wallet/Object/Duo.pm
+++ b/perl/lib/Wallet/Object/Duo.pm
@@ -105,7 +105,7 @@ sub create {
# Create the object in Duo.
require Net::Duo::Admin::Integration;
my %data = (
- name => $name,
+ name => "$name ($Wallet::Config::DUO_TYPE)",
notes => 'Managed by wallet',
type => $Wallet::Config::DUO_TYPE,
);