mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #83867 from yutedz/snapshot-restore-err
Check error return from snapshot Restore
This commit is contained in:
		@@ -225,7 +225,9 @@ func (r *Range) Restore(net *net.IPNet, data []byte) error {
 | 
				
			|||||||
	if !ok {
 | 
						if !ok {
 | 
				
			||||||
		return fmt.Errorf("not a snapshottable allocator")
 | 
							return fmt.Errorf("not a snapshottable allocator")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	snapshottable.Restore(net.String(), data)
 | 
						if err := snapshottable.Restore(net.String(), data); err != nil {
 | 
				
			||||||
 | 
							return fmt.Errorf("restoring snapshot encountered %v", err)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user