#! /usr/bin/perl
#
# Copyright (c) 2015 cPanel, Inc.
# All rights reserved.
#
# 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) {
"$service\n"
;
}