Skip to content
Snippets Groups Projects
Commit 0ceb100d authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

oops (bis)

parent 1a0272e8
Branches
Tags
No related merge requests found
...@@ -15,7 +15,7 @@ use Pod::Usage; ...@@ -15,7 +15,7 @@ use Pod::Usage;
use AccountManager::Account; use AccountManager::Account;
use AccountManager::Metadata; use AccountManager::Metadata;
use AccountManager::ServiceProvider; use AccountManager::Entity;
use AccountManager::Token; use AccountManager::Token;
use AccountManager::Tools; use AccountManager::Tools;
...@@ -195,7 +195,7 @@ sub add_service { ...@@ -195,7 +195,7 @@ sub add_service {
) unless $options{contacts}; ) unless $options{contacts};
## Check if entry already exists in DB first ## Check if entry already exists in DB first
my $provider = AccountManager::ServiceProvider->new( my $provider = AccountManager::Entity->new(
db => $db, db => $db,
entityid => $options{sp_entityid} entityid => $options{sp_entityid}
); );
...@@ -206,7 +206,7 @@ sub add_service { ...@@ -206,7 +206,7 @@ sub add_service {
$provider->contacts($options{contacts}); $provider->contacts($options{contacts});
$provider->displayname($options{displayname}) if $options{displayname}; $provider->displayname($options{displayname}) if $options{displayname};
} else { } else {
$provider = AccountManager::ServiceProvider->new( $provider = AccountManager::Entity->new(
db => $db, db => $db,
entityid => $options{sp_entityid}, entityid => $options{sp_entityid},
contacts => $options{contacts}, contacts => $options{contacts},
...@@ -223,7 +223,7 @@ sub add_service { ...@@ -223,7 +223,7 @@ sub add_service {
sub list_services { sub list_services {
my %args; my %args;
my $providers = AccountManager::ServiceProvider->get_service_providers(db => $db, %args); my $providers = AccountManager::Entity->get_entities(db => $db, %args);
if (! @$providers) { if (! @$providers) {
printf "No service provider in DB\n"; printf "No service provider in DB\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment