FIX: fixed th eissue if the config folder is missing
This commit is contained in:
@@ -14,6 +14,10 @@ namespace kubecontrol
|
||||
|
||||
this->PathToYaml_ = "config/pods/" + this->Label_ + ".yaml";
|
||||
|
||||
if( std::filesystem::directory_entry("config").exists() != true)
|
||||
{
|
||||
std::filesystem::create_directory("config");
|
||||
}
|
||||
std::filesystem::directory_entry entry("config/pods");
|
||||
if(entry.exists() != true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user