forked from ungleich-public/cdist
		
	Merge pull request #417 from darko-poljak/orig-master-issue-#415
Resolved issue #415 (Error in exec/local.py run method when OSError is thrown)
This commit is contained in:
		
				commit
				
					
						933f4919a8
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -195,7 +195,7 @@ class Local(object):
 | 
				
			||||||
        except subprocess.CalledProcessError:
 | 
					        except subprocess.CalledProcessError:
 | 
				
			||||||
            raise cdist.Error("Command failed: " + " ".join(command))
 | 
					            raise cdist.Error("Command failed: " + " ".join(command))
 | 
				
			||||||
        except OSError as error:
 | 
					        except OSError as error:
 | 
				
			||||||
            raise cdist.Error(" ".join(*args) + ": " + error.args[1])
 | 
					            raise cdist.Error(" ".join(command) + ": " + error.args[1])
 | 
				
			||||||
        finally:
 | 
					        finally:
 | 
				
			||||||
            if message_prefix:
 | 
					            if message_prefix:
 | 
				
			||||||
                message.merge_messages()
 | 
					                message.merge_messages()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue