mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	Make sure credential files have a trailing newline (#4442)
This commit is contained in:
		| @@ -321,6 +321,7 @@ sub process_request | ||||
|             open($tmpfile, $tfilename); | ||||
|             @filecontent = <$tmpfile>; | ||||
|             close($tmpfile); | ||||
|             $filecontent[$#filecontent] =~ s/\n?$/\n/; | ||||
|             $retdata = "\n" . join('', @filecontent); | ||||
|             push @{ $rsp->{'data'} }, { content => [$retdata], desc => [$parm] }; | ||||
|             $retdata     = ""; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user