#! /usr/bin/perl # # Copyright (c) 2019 cPanel, L.L.C. # All rights reserved. # http://cpanel.net/ # # Distributed under the terms of the MIT license. See the LICENSE file for # further details. # use strict; use warnings; use OpenStack::Client::Auth (); my $client = OpenStack::Client::Auth->new($ENV{'OS_AUTH_URL'}, 'tenant' => $ENV{'OS_TENANT_NAME'}, 'username' => $ENV{'OS_USERNAME'}, 'password' => $ENV{'OS_PASSWORD'} ); foreach my $service ($client->services) { print "$service\n"; }