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

oops (bis)

parent 1a0272e8
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ use Pod::Usage;
use AccountManager::Account;
use AccountManager::Metadata;
use AccountManager::ServiceProvider;
use AccountManager::Entity;
use AccountManager::Token;
use AccountManager::Tools;
......@@ -195,7 +195,7 @@ sub add_service {
) unless $options{contacts};
## Check if entry already exists in DB first
my $provider = AccountManager::ServiceProvider->new(
my $provider = AccountManager::Entity->new(
db => $db,
entityid => $options{sp_entityid}
);
......@@ -206,7 +206,7 @@ sub add_service {
$provider->contacts($options{contacts});
$provider->displayname($options{displayname}) if $options{displayname};
} else {
$provider = AccountManager::ServiceProvider->new(
$provider = AccountManager::Entity->new(
db => $db,
entityid => $options{sp_entityid},
contacts => $options{contacts},
......@@ -223,7 +223,7 @@ sub add_service {
sub list_services {
my %args;
my $providers = AccountManager::ServiceProvider->get_service_providers(db => $db, %args);
my $providers = AccountManager::Entity->get_entities(db => $db, %args);
if (! @$providers) {
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