@@ -1012,13 +1012,13 @@ void general() {
10121012 {
10131013 std::string brand = vm.brand ;
10141014
1015- if (is_anyrun && (brand == " Unknown " )) {
1015+ if (is_anyrun && (brand == brands::NULL_BRAND )) {
10161016 brand = " ANY.RUN" ;
10171017 }
10181018
10191019 const bool is_red = (
1020- (brand == " Unknown " ) ||
1021- (brand == " Hyper-V artifact (not an actual VM) " )
1020+ (brand == brands::NULL_BRAND ) ||
1021+ (brand == brands::HYPERV_ARTIFACT )
10221022 );
10231023
10241024 std::cout << bold << " VM brand: " << ansi_exit << (is_red ? red : green) << brand << ansi_exit << " \n " ;
@@ -1031,11 +1031,11 @@ void general() {
10311031 std::string color = " " ;
10321032 std::string &type = vm.type ;
10331033
1034- if (is_anyrun && (type == " Unknown " )) {
1034+ if (is_anyrun && (type == brands::NULL_BRAND )) {
10351035 type = " Sandbox" ;
10361036 }
10371037
1038- if (type == " Unknown " ) {
1038+ if (type == brands::NULL_BRAND ) {
10391039 color = red;
10401040 } else {
10411041 color = green;
@@ -1312,7 +1312,7 @@ int main(int argc, char* argv[]) {
13121312 if (arg_bitset.test (BRAND)) {
13131313 std::string brand = VM::brand (VM::NO_MEMO, VM::MULTIPLE, settings ());
13141314
1315- if (is_anyrun && (brand == " Unknown " )) {
1315+ if (is_anyrun && (brand == brands::NULL_BRAND )) {
13161316 brand = " ANY.RUN" ;
13171317 }
13181318
@@ -1324,7 +1324,7 @@ int main(int argc, char* argv[]) {
13241324 if (arg_bitset.test (TYPE)) {
13251325 std::string type = VM::type (VM::NO_MEMO, VM::MULTIPLE, settings ());
13261326
1327- if (is_anyrun && (type == " Unknown " )) {
1327+ if (is_anyrun && (type == brands::NULL_BRAND )) {
13281328 type = " Sandbox" ;
13291329 }
13301330
@@ -1337,7 +1337,7 @@ int main(int argc, char* argv[]) {
13371337 std::string conclusion = VM::conclusion (VM::NO_MEMO, VM::MULTIPLE, settings ());
13381338
13391339 if (is_anyrun) {
1340- const std::string original = " Unknown " ;
1340+ const std::string original = brands::NULL_BRAND ;
13411341 const std::string new_brand = " ANY.RUN" ;
13421342
13431343 replace (conclusion, original, new_brand);
0 commit comments