Ansibel token
This commit is contained in:
@@ -108,6 +108,10 @@ abstract class BaseController extends Controller
|
||||
public function ansibleLogin(): string
|
||||
{
|
||||
$token = null;
|
||||
if (isset($_ENV['ANSIBLE_LOGIN_TOKEN']) && $_ENV['ANSIBLE_LOGIN_TOKEN'] !=''){
|
||||
return $_ENV['ANSIBLE_LOGIN_TOKEN'];
|
||||
}
|
||||
|
||||
try {
|
||||
// Code that might throw an exception
|
||||
$result = "Unhandled exception";
|
||||
|
||||
Reference in New Issue
Block a user