aboutsummaryrefslogtreecommitdiff
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
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>
-rw-r--r--perl/lib/Wallet/Object/Duo.pm2
-rwxr-xr-xperl/t/object/duo.t2
2 files changed, 2 insertions, 2 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,
);
diff --git a/perl/t/object/duo.t b/perl/t/object/duo.t
index 4229afe..f73fe7e 100755
--- a/perl/t/object/duo.t
+++ b/perl/t/object/duo.t
@@ -70,7 +70,7 @@ $Wallet::Config::DUO_KEY_FILE = 't/data/duo/keys.json';
# Test creating an integration.
note ('Test creating an integration');
my $expected = {
- name => 'test',
+ name => 'test (unix)',
notes => 'Managed by wallet',
type => 'unix',
};