diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-04 05:05:31 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-04 05:05:31 -0400 |
commit | d33bd8510d992a2d45bf25f8dd91e8f86d3070b6 (patch) | |
tree | b8e5850f0176da257b6c9f5734098edd368e278b | |
parent | 5b4d48a9367a43954a86bc56fabc8ee4ba8521ff (diff) | |
download | puppet-tozt-d33bd8510d992a2d45bf25f8dd91e8f86d3070b6.tar.gz puppet-tozt-d33bd8510d992a2d45bf25f8dd91e8f86d3070b6.zip |
fix
-rwxr-xr-x | modules/tozt/files/new-git-repo | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/tozt/files/new-git-repo b/modules/tozt/files/new-git-repo index 479eb08..7ed141d 100755 --- a/modules/tozt/files/new-git-repo +++ b/modules/tozt/files/new-git-repo @@ -172,7 +172,7 @@ EOF } sub gitlab_v4($self, $method, $path, $data=undef) { - my $res = $self->github_ua->request( + my $res = $self->gitlab_ua->request( $method, "https://gitlab.com/api/v4$path", { @@ -186,6 +186,7 @@ EOF } decode_json($res->{content}) } + sub github_ua($self) { $self->{github_ua} ||= HTTP::Tiny->new( default_headers => { |